Evaluates a conditional expression.
<!-- #ICE [REPEAT]
IF `condition`
THEN=`...`
[ELSE=`...`]
-->
Parameters The following table lists the parameters used with the IF keyword:
|
Parameter |
Description |
|
condition |
A single or a compound conditional expression where: condition = comparision {AND | OR} and: comparision = `...`
{ == | != | < | > } |
Conditional expressions are available to allow HTML output that is dependent on the result of an expression. An expression is composed of one or more comparisons. Comparisons are performed as string compares. The comparison operators are:
|
Comparison Operator |
Description |
|
== |
Equal |
|
!= |
Not equal |
|
< |
Less than |
|
> |
Greater than |
Multiple comparisons are expressed using logical operators:
|
Logical Operator |
Description |
|
AND |
Logical AND |
|
OR |
Logical OR |
REPEAT Option See the FUNCTION keyword for information on the REPEAT option.
<!-- #ICE IF ( `:VariableA` == `String` )
THEN=`<b>The expression evaluates to true.</b>`
ELSE=`<b>The expression evaluates to false.</b>`
-->
<!-- #ICE IF (DEFINED(VariableA))
THEN=`<b>The variable exists</b>`
ELSE=`<b>The variable doesn’t exist.</b>`
-->
<!-- #ICE REPEAT IF (`:ii_status_number` == `0`)
THEN=`<!-- #ICE INCLUDE=``success.html`` -->`
-->
SWITCH keyword