Conditional Statements with IF/ELSE/ENDIF

Note: WP All Import still supports using [IF] statements as described below. However, we now suggest using a custom PHP function and standard PHP if and else statements for conditionals.

WP All Import includes built-in constructs to perform simple conditional statements.
Example A – if an element or column contains a value

[IF({description[contains(.,'AAB')]})]
contains "AAB"
[ELSE]
does not contain "AAB"
[ENDIF]

Example B – if an element or column is empty

[IF({description[not(text())]})]
there are no {description} element(s) with text
[ELSE]
there are {description} element(s) with text
[ENDIF]