Starts an IF block. If the expression specified in the Condition field resolves to TRUE, all of the actions following the IF action will be executed until a matching END IF is found. If the expression evaluates to FALSE, the installer will jump to the first action after the next matching END IF, and the actions will continue to be performed from there.
Action ID: 100
Action Category:
Control Structures
The conditional expression that must resolve to TRUE in order for the actions in the IF block to be performed.
Opens the Build Expression dialog which provides a useful interface to help you build the conditional expression.
SEE ALSO |
|
|
|
? |
For more information on expressions, see Chapter 2: Key Concepts and Chapter 15: Expressions in the User's Guide. |
Value |
Simple Message |
Verbose Message |
0 (OK) |
|
|
1 |
Syntax error in IF statement. |
Missing value. A value was expected at position <<Start
position of error>>. |
2 |
Syntax error in IF statement. |
Missing operator before open parenthesis. There is an operator
missing before the open parenthesis at position <<Start
position of error>>. |
80 |
Syntax error in IF statement. |
End of loop not found. |
In this example, we will create an IF block that will only be executed if the user is running on Windows 95 or Windows 98.
Condition: (%IsWin95% = 1) OR (%IsWin98% = 1)
In this example, we will create an IF block that will only be executed if the user is running the update on a non-English system.
Condition: %SysLanguage% <> 9
See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab