en:documentation:conditions
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
en:documentation:conditions [2020/04/06 14:21] – loopback | en:documentation:conditions [2020/04/24 16:30] (текущий) – loopback | ||
---|---|---|---|
Строка 4: | Строка 4: | ||
< | < | ||
- | If [Not] < | + | If < |
... | ... | ||
- | ElseIf | + | ElseIf < |
... | ... | ||
Else | Else | ||
Строка 13: | Строка 13: | ||
</ | </ | ||
- | For numeric comparison operator | + | In conditions, you can use any valid [[expressions|expression]], |
- | Variables are always expanding in the expressions. If you assume that variable value can conatin spaces, wrap expression in quotes. Example: | + | Unlike |
< | < | ||
- | If ("%var_with_spaces%" | + | If %AUTORUN_TCARCH% = 32 Then |
+ | ... | ||
+ | EndIf | ||
+ | |||
+ | If FileExist("%COMMANDER_PATH%\NoClose.exe") Then | ||
+ | ... | ||
+ | EndIf | ||
</ | </ | ||
- | Also, some special functions can be used in comparison. In this case comparison limited to only one function. | + | **Legacy command use** |
+ | In Autorun before version 2.0.10, only certain special functions could be used in conditions, while the condition was limited to one function. In later versions, this option is left for compatibility. | ||
< | < |
en/documentation/conditions.txt · Последнее изменение: 2020/04/24 16:30 — loopback