Quick Reference for "if"
Click on command to see examples & comments
Control Operators and Clauses
Usage: if:condition1:condition2
Description: Starts an IF block. condition1 can be either (true, false, exists, !exists, empty, or !empty) where !exists and !empty mean "doesn't exist" and "isn't empty".
condition2 is a condition specified by conditional operators (<<, >>, ==, !=, <=, >=, , and ) if condition1 is set to true or false.
If condition1 is set to empty, or exists, condition2 need only include a DOM element property or variable.
An example would be: "if:exists:dom.a.1" or "if:true:dom.a.1.innerhtml==foo" or even "if:false:foodom.a.1.innerhtml". There are many ways to use the two conditional statements to specify the condition needed.
All if statements must come with a following endif statement.