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

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


en:documentation:expressions

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версияСледующая версия справа и слева
en:documentation:expressions [2020/04/07 19:49] loopbacken:documentation:expressions [2020/04/07 19:53] loopback
Строка 1: Строка 1:
 ====== Expressions ====== ====== Expressions ======
  
-Выражения используются в [[conditions|условиях]]. Начиная с версии 2.0.10 вычисляемые выражения также могут использоваться во всех параметрах команд Autorun. +Expressions are used in [[conditions|conditions]]. Starting with version 2.0.10, calculated expressions can also be used in all parameters of Autorun commands.
  
-Для использования в параметрах команд необходимо чтобы параметр был в кавычках и непосредственно перед ними  +For use in command parameters, the parameter must be in quotation marks and immediately before them 
-стоял знак "%"В этом случае текст будет трактоваться как вычисляемое выражениеНапример:+there was a "%" signIn this case, the text will be treated as a calculated expressionFor example:
  
 <code> <code>
 Set Delay 500 Set Delay 500
 Sleep %"1000 + %Delay%" Sleep %"1000 + %Delay%"
-результат вычисления - 1500.+result = 1500.
 </code> </code>
  
-Внутри кавычек для текстовых константкак и вездеможно использовать кавычки другого типа:+Inside quotes for text constantsas elsewhereyou can use quotes of a different type:
 <code> <code>
-Set sl 1000  +StrLen var %'"String_" & 1'  
-StrLen var %'"Строка_" & 1'  +# var => String_1
-# var => Строка_1+
 </code> </code>
  
-Хотя в выражениях могут использоваться текстовые константыне обернутые в кавычки, такой вариант оставлен только для совместимостиНастоятельно рекомендуется использовать кавычки повсеместноЭто значительно уменьшит число возможных ошибок.+Although text constants that not wrapped in quotation marks can be used in expressionsthis option is left for compatibility purposes onlyIt is highly recommended that you use quotation marks everywhereThis will significantly reduce the number of possible errors.
  
 Arithmetic operations, the concatenation operation "&" of strings, and logical operations can be used in expressions. Arithmetic operations, the concatenation operation "&" of strings, and logical operations can be used in expressions.
Строка 29: Строка 28:
 Brackets and AND, OR, and NOT operators are also allowed. True/False keywords are allowed, which are equivalent to the strings "1"/"0", respectively. Brackets and AND, OR, and NOT operators are also allowed. True/False keywords are allowed, which are equivalent to the strings "1"/"0", respectively.
  
-Приоритет выполнения операцийот высшего к низшему:+The priority of operationsfrom highest to lowest:
  
 <code> <code>
en/documentation/expressions.txt · Последнее изменение: 2020/04/24 16:29 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki