if.contains

/ Conditionals / if.contains

if haystack contains needle then executes

Parameters supported : needle(key), haystack(comma separated string)

Syntax

[if.contains needle=”value” haystack=”{array}”]
/** *
* code
*
**/
[/if.contains]

Example
//** let there is an array containing abc,xyz,pqr as strings **//


[if.contains needle=”xyz” haystack=”{template.arg_array}”]
[aw2. get template.contains_string]
[/if.contains]

Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *