Conditional Statements with IF/ELSE/ENDIF

WP All Import includes built-in constructs to perform simple conditional statements. For more advanced conditional statements, use a custom PHP function.

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]