Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия | |||
en:documentation:conditions [2020/04/07 13:40] loopback |
en:documentation:conditions [2020/04/24 16:30] (текущий) loopback |
||
---|---|---|---|
Строка 14: | Строка 14: | ||
In conditions, you can use any valid [[expressions|expression]], the result of which is equal to “true” or “false”. For true, a string equal to "1" is taken, for a false - "0" or an empty string. | In conditions, you can use any valid [[expressions|expression]], the result of which is equal to “true” or “false”. For true, a string equal to "1" is taken, for a false - "0" or an empty string. | ||
+ | |||
+ | Unlike expressions in command parameters, an expression in conditions is written without quotes with % sign in front of them: | ||
+ | |||
+ | <code> | ||
+ | If %AUTORUN_TCARCH% = 32 Then | ||
+ | ... | ||
+ | EndIf | ||
+ | |||
+ | If FileExist("%COMMANDER_PATH%\NoClose.exe") Then | ||
+ | ... | ||
+ | EndIf | ||
+ | </code> | ||
**Legacy command use** | **Legacy command use** |