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

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


en:documentation:conditions

Различия

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

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

Предыдущая версия справа и слеваПредыдущая версия
Следующая версияСледующая версия справа и слева
en:documentation:conditions [2020/04/06 14:21] loopbacken:documentation:conditions [2020/04/07 13:40] loopback
Строка 13: Строка 13:
 </code> </code>
  
-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 numericthen numeric comparison used+In conditions, you can use any valid [[expressions|expression]], the result of which is equal to “true” or “false”. For true, a string equal to "1" is takenfor a false - "0" or an empty string.
  
-Variables are always expanding in the expressions. If you assume that variable value can conatin spaces, wrap expression in quotes. Example: +**Legacy command use**
- +
-<code> +
-If ("%var_with_spaces%" = "value") Then +
-</code> +
- +
-Also, some special functions can be used in comparison. In this case comparison limited to only one function.+
  
 +In Autorun before version 2.0.10, only certain special functions could be used in conditions, while the condition was limited to one function. In later versions, this option is left for compatibility.
  
 <code> <code>
en/documentation/conditions.txt · Последнее изменение: 2020/04/24 16:30 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki