Statement | IfInBag |
---|---|
Version | 2.3.7+ |
Purpose | Checks if a specified value is in a particular bag |
The IfInBag statement requires a bag name and value, in the format
IfInBag <bag name> <value>
Basic example
IfInBag mybag "value" # Statements EndIf
Using an Else statement
IfInBag mybag "value" # Statements Else # Statements EndIf
Using a regular expression
IfInBag mybag "/@domain\.com/i" # Statements EndIf
Using a wildcarded expression
IfInBag mybag "*@domain.com" # Statements EndIf