en:documentation:expressions
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версия | Последняя версияСледующая версия справа и слева | ||
en:documentation:expressions [2020/04/07 19:53] – loopback | en:documentation:expressions [2020/04/07 19:56] – loopback | ||
---|---|---|---|
Строка 39: | Строка 39: | ||
</ | </ | ||
- | **Использование команд в выражениях** | + | **Using commands in expressions** |
- | В выражениях возможно использование любых команд | + | It is possible to use any Autorun |
+ | |||
+ | To use a command as a function in an expression, it must be written using brackets and a comma as a parameter separator. The first parameter (variable name for the return value) is not used in this case. If you need to use the switches, you need to pass them in the first parameter, in quotation marks separated by a space, the parameter text should begin with the character " | ||
- | Для использования команды в качестве функции в выражении, | ||
< | < | ||
CommandName([" | CommandName([" | ||
</ | </ | ||
- | Пример: | + | Example: |
< | < | ||
Set zz " | Set zz " | ||
Строка 55: | Строка 56: | ||
</ | </ | ||
- | В выражениях можно использовать вложенные команды: | + | You can use nested commands in expressions: |
< | < | ||
Set zz " | Set zz " | ||
Строка 61: | Строка 62: | ||
# => abc-6-5 | # => abc-6-5 | ||
</ | </ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | Variables are always expanding in the expressions. If you assume that variable value can conatin spaces, wrap expression in quotes. Example: | ||
- | |||
- | < | ||
- | If (" | ||
- | </ | ||
- | |||
- | Also, some special functions can be used in comparison. In this case comparison limited to only one function. | ||
- | |||
- | |||
- | < | ||
- | If [Not] Function1 < | ||
- | ... | ||
- | ElseIf [Not] Function2 < | ||
- | ... | ||
- | Else | ||
- | ... | ||
- | EndIf | ||
- | </ | ||
- | |||
- | It's allowed to use both expressions and function in one condition (but in different branches). | ||
en/documentation/expressions.txt · Последнее изменение: 2020/04/24 16:29 — loopback