condition requiredThe text to test. HTML comments are stripped first, then it is trimmed. The condition is considered set when something non-empty remains and it is not an unresolved field alias such as _#HEADLINE. You may supply several condition:text pairs; the first condition that is set decides the output.
text optionalPrinted when the condition is set. The alias _#1 inside it is replaced by the matching condition value.
else_text optionalPrinted when no condition is set (the leftover trailing argument). Optional - if omitted, an unset condition yields an empty string.
{iftext:Anna:Hello Anna:Hi there}
{iftext::Hello Anna:Hi there}
[{iftext:<!-- internal note -->:visible:hidden}]
{iftext:Live <!-- draft --> copy:show:skip}
{iftext:Praha:Selected city is _#1:none}
{iftext::skipped:Bob:Hello Bob:nobody}
[{iftext::only when set}]
[{iftext:<!-- no alt yet -->: alt="_#1": alt="image"}]