Defines an IF conditional statement based on a JavaScript condition.

The If statement is one of the HTML transaction conditional statements. It conditionally executes a block of statements, depending on the fulfillment of a condition expression. In other words, if the condition is fulfilled, child statements are executed.
The condition, set in the Condition property, is a JavaScript expression that is evaluated during the transaction execution as true or false.
Note: In Convertigo Studio, when an If statement is created in a handler, it can be easily replaced by an IfThenElse, using the right-click menu on the statement and choosing the option Change to > IfThenElse. The Condition property remains the same and the statements present in the If are moved to the Then sub-statement.

Property Type Category Description
Comment String standard Describes the object comment to include in the documentation report.
This property generally contains an explanation about the object.
Condition JS expression standard Defines the block condition expression.
This property is a JavaScript expression that will be evaluated as condition (true or false) in order to decide whether to execute or not the child statements.
Is active boolean standard Defines whether the statement is active.