Checking a field for a value (IF CONTAINS)
Recently we have added a Smarty plugin which allows for some simple syntax to check if a field contains a certain value. More advanced programmers will know that this can be accomplished using the ever dreaded regular expressions.
Smarty plugin documentation & credits
Basic syntax
The basic use of the contains syntax is the following code. Else and elseif can be used optional.
{if $FIELDNAME|contains:"value"} output {else} other output (optional) {/if}