EN RU
Log in
Home
Download
Purchase
Documentation
Support
Contact us
 
Help  /  Command Reference  /  Programming

While statement

While statement. You can use this command to define a simple loop. This command can contain other commands, which will be executed until a specified condition is fulfilled .

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
While statement command
While 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.

Eonza automation software - free, open source cross-platform program for easy creation and management of scripts.
  • Command Reference
    • Application
    • Dialogs
    • Files
    • Internet
    • Messages & Sound
    • Programming
      • Call function
      • Catch Exit
      • Notice
      • Sleep
      • Timeout
      • Exit/Reboot
      • For statement
      • Function
      • If statement
      • Source code
      • For statement with Split
      • While statement
    • Register DLL & Fonts
    • Registry & INI
    • System
    • Text Files
    • Uninstaller
    • Variables
Copyright © Novostrim, OOO, 2009-2026 All rights reserved.