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

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


en:documentation:conditions

Это старая версия документа!


Conditions

Here is one and only conditional statement:

If <expression 1> Then
  ...
ElseIf <expression 2> Then
  ...
Else
  ...
EndIf

In conditions, you can use any valid 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.

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.

If [Not] Function1 <parameters> Then
  ...
ElseIf [Not] Function2 <parameters> Then
  ...
Else
  ...
EndIf

It's allowed to use both expressions and function in one condition (but in different branches).

en/documentation/conditions.1586256048.txt.gz · Последние изменения: 2020/04/07 13:40 — loopback

Инструменты страницы