if-PREFIX-param
Summary
- [if-PREFIX-param column] column value is true [else] column value is false [/else] [/if-PREFIX-param]
Description
This loop sub-tag looks named column
in the mv_return_fields
list.
If the column's value evaluates true (non-blank and non-zero)
then the IF text will be returned.
If it evaluates false then the text in the optional
[else] block will be returned.
You can reverse the IF text and ELSE text by using the "!" (not) operator,
as follows:
[if-PREFIX-param !column]
IF (not found) text
[else]
ELSE (found) text
[/else]
[/if-PREFIX-param]
|
You can test the column for a specific value,
using any of the Interchange test operators,
as follows:
[if-PREFIX-param column =~ /kevin|walsh/]
Yay!
[else]
Bah!
[/else]
[/if-PREFIX-param]
|
See also