Инструменты пользователя

Инструменты сайта


en:documentation:conditions

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
en:documentation:conditions [2020/04/07 13:40] loopbacken:documentation:conditions [2020/04/24 16:30] (текущий) loopback
Строка 4: Строка 4:
  
 <code> <code>
-If [Not] <expression 1> Then+If <expression 1> Then
   ...   ...
-ElseIf [Not] <expression 2> Then+ElseIf <expression 2> Then
   ...   ...
 Else Else
Строка 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**
en/documentation/conditions.1586256027.txt.gz · Последнее изменение: 2020/04/07 13:40 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki