Legacy Dev Forum Posts

 View Only

Sign Up

Dynamic Script Variable String Contains Operation

  • 1.  Dynamic Script Variable String Contains Operation

    Posted 06-05-2025 19:15

    usuresh | 2023-09-22 21:16:40 UTC | #1

    Hi, I am trying to check my string contains some specific string value. Is there a String function I can use in dynamic script variable ? Ex: TRUE_FOUND How to check my String has "TRUE" in the dynamic Variable.


    Ebenezer_Osei | 2023-09-25 18:57:32 UTC | #2

    Hello,

    You can utilize the match function in a dynamic expression: https://help.mypurecloud.com/articles/additional-functions-to-use-in-dynamic-variables/#RegexDocumentation-match(value,pattern[,flags,groupIndex])

    Best


    Artur_Dishunts | 2023-10-06 19:01:40 UTC | #3

    match({{yourvariablename}}, "TRUE") //this will return true if it is found.


    system | 2023-11-06 19:02:21 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 22177