en:documentation:expressions
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
en:documentation:expressions [2020/04/07 19:53] – loopback | en:documentation:expressions [2020/04/24 16:29] (текущий) – 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 " | ||
Строка 62: | Строка 63: | ||
</ | </ | ||
- | + | If environment variables | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | Variables | + | |
- | + | ||
- | < | + | |
- | If (" | + | |
- | </ | + | |
- | + | ||
- | Also, some special functions | + | |
< | < | ||
- | If [Not] Function1 < | + | # environment variables are expanding in the command' |
- | ... | + | FileExist(" |
- | ElseIf [Not] Function2 < | + | # environment variables are not expanding in the command' |
- | ... | + | StrLen(%COMMANDER_PATH% & " |
- | 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