en:documentation:conditions
Это старая версия документа!
Conditions
Here is one and only conditional statement:
If [Not] <expression 1> Then ... ElseIf [Not] <expression 2> Then ... Else ... EndIf
For numeric comparison operator can be one of: =, <>, >, <, >=, ⇐. For string comparison only = and <> allowed, comparison is case insensitive. Allowed brackets and operators AND and OR. If both expressions are numeric, then numeric comparison used.
Variables are always expanding in the expressions. If you assume that variable value can conatin spaces, wrap expression in quotes. Example:
If ("%var_with_spaces%" = "value") Then
Also, some special functions can be used in comparison. In this case comparison limited to only one function.
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.1586172061.txt.gz · Последнее изменение: 2020/04/06 14:21 — loopback