en:autorun:documentation:conditions
Conditions
The plugin has two comparison conditions:
The result of the expression evaluation must be 1 (True) or 0 (False).
Both types of conditions do the same thing, but one type or the other may be more convenient in different situations.
The regular If condition is the most common.
number = -20 If number > 0 Then MsgBox("The number is positive") ElseIf number < 0 Then MsgBox("The number is negative") Else MsgBox("The number is zero") EndIf
The Switch condition is used for situations where the result of a single expression is compared to a large number of different values. This entry is shorter and easier to read.
number = 7 Switch number Case 1 to 10 MsgBox("A number greater than or equal to 1 and less than or equal to 10") Case 11 to 20 MsgBox("A number greater than or equal to 11 and less than or equal to 20") Case 0, -1 MsgBox("The number is 0 or -1") Else MsgBox("A number less than -1 or greater than or equal to 21") EndIf
en/autorun/documentation/conditions.txt · Последнее изменение: 2022/09/16 22:05 — loopback