EN RU
Log in
Home
Download
Purchase
Documentation
Support
Contact us
 
Help  /  FAQ

How to use If Condition

This parameter allows you to define the conditions under which the action will be executed or skipped. There are several ways to specify such fields. The program automatically determines what method you use.

Variable name

It is enough to specify a variable name, the value of which will be checked. The condition is fulfilled if the value of the variable is not an empty string and it doesn't not equal to "0" and "false". You can specify the negation '!'.

myvar
!myoption

Value of the variable

It is possible to specify the value of the variable by using the character '#'. This method is the same as the first one.

#myvar#
!#myoption#

Complex condition

This method allows you to specify some conditions and compare variables with numbers or strings. You can use parentheses, comparison operations and the operations && (AND) and ||(OR). Specify a character 'N' before the variable name for numeric comparison and a character 'S' before the variable name for string comparison.

Nosplatform >= 2 && Nmyoption
!Nokaction && ( Smode == "full" || Smode == "normal" )

Gentee condition

This method allows you to use any logical conditions in the Gentee programming language, including the calling of functions.

macrox_getint("osplatform") >= 2 && macrox_getint("myoption")
!macrox_getint("okaction") && ( macrox_get("mode") == "full" ||
macrox_get("mode") == "normal" )
macrox_do("#left#") != macrox_do("#right#") || myfunction( 10 ) < 10

 

See also

  • How to use conditional statements
Eonza automation software - free, open source cross-platform program for easy creation and management of scripts.
  • Help
    • Introduction
    • Get to know CreateInstall
    • Compare installers
    • License Agreement
    • License Light
    • License Free
    • Program features
    • Command Reference
    • FAQ
      • Antivirus false positives
      • Command Prompt Mode
      • How to create shortcuts
      • How to get Control ID
      • How to sign an installation
      • How to use environment variables
      • Installing 64-bit applications
      • Local variables
      • Portable version
      • Unpacking filter
      • Common dialog parameters
      • Custom dialog function
      • Global variables
      • How to move and resize controls
      • How to use If Condition
      • Language-dependent variables
      • Multi build setups
      • Predefined folders
      • Predefined variables
      • Variables of dialogs
    • Examples & tips
    • CreateInstall Assistant
    • Problem solving
    • Setup Extractor
Copyright © Novostrim, OOO, 2009-2026 All rights reserved.