---
title: "Discussion on \"AMPscript Has A 'Contains' Function, It's Just Not Obvious\" | Hashnode"
description: "Discussion on \"AMPscript Has A 'Contains' Function, It's Just Not Obvious\". Need to check if one string contains another? Probably constantly. It's surprising that with how many string comparison operators and functions AMPscript has, there isn't a contains operator or a Contains() function.\nNot to worry, you can do it with ..."
url: "https://hashnode.com/posts/ampscript-has-a-contains-function-its-just-not-obvious/66bebff2822e1ddc7211fe8e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [AMPscript Has A 'Contains' Function, It's Just Not Obvious](https://ampscript-ninja.hashnode.dev/ampscript-has-a-contains-function-its-just-not-obvious?utm_source=hashnode&utm_medium=feed)

Need to check if one string contains another? Probably constantly. It's surprising that with how many string comparison operators and functions AMPscript has, there isn't a contains operator or a Contains() function. Not to worry, you can do it with ...

Aug 16, 2024 · 3 min read · ampscript-ninja.hashnode.dev  
Read the article

-   [#ampscript](https://hashnode.com/tag/ampscript)
-   [#sfmc](https://hashnode.com/tag/sfmc)

## Written by

[Adam Thul](https://hashnode.com/@adamthul)

@adamthul · Twin Cities, Minnesota

  
[View profile](https://hashnode.com/@adamthul)

Email Automation & 1:1 Capabilities Architect at Polaris Inc.

AMPscript ninja with 15 years in ExactTarget, Salesforce Marketing Cloud Engagement, and anything/everything to do with email and marketing automation

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
