If statement
Conditional expression. You can use this command to define simple conditional operators. This command can contain other commands, which will be executed only if the specified condition is true.
Description
Optionally, you may add comments here describing the purpose of this element.
Variable name
The name of the macro, the value of which will be compared.
val1
If statement command
Comparison Type
Specify the comparison operations you need. If you selected 'Directory Exists' or 'File exists', then you can specify Variable name, which contains the dir(file)name, or you can specify the dir(file)name in the Value field.
Command-line parameter - you can check if the setup was run with the specified command-line parameter. You can specify Variable name, which contains the command-line parameter, or you can specify the the command-line parameter in the Value field. If you want to check command-line parameters in the 'If Condition' field in other commands, then use is_commandline function. For example, is_commandline("-s").
Negation of Condition
Checked =>Negates the condition ( false => true, true => false ).
Value
The value, to which the variable specified above is compared. This parameter is ignored in the case of some comparison operations (Empty, Not empty).
#val2# Alex #name#
Next Condition
You can specify a combination of two conditions.
AND - this and the next condition must be true.
OR - At least one of the two conditions must be true.
You can use the Source code command in Gentee programming language code for more complex conditional expressions.
if macrox_getint("my1") && ( *macrox_get("mystr") || macrox_getint("my2") >= 100 )) { $body$ }
Comment
You can add a comment for this setting here.
Else Function
You can specify the name of a function, which will be executed if the condition in the given command is not executed (is false). The function must be defined with the help of the Function command. This option is available only in the Full version of the CreateInstall installer, as the Light and Free versions don’t allow you to specify functions.