NumExpression/en: Porovnání verzí
(Založena nová stránka s textem „Evaluates a numeric expression.“) |
(Založena nová stránka s textem „Evaluated result of the given expression.“) |
||
| (Není zobrazeno 20 mezilehlých verzí od stejného uživatele.) | |||
| Řádek 9: | Řádek 9: | ||
Evaluates a numeric expression. | Evaluates a numeric expression. | ||
| − | + | Evaluates an expression given by [[#expression-| Expression]] parameter using variables [[#a-| A]], [[#b-| B]], [[#c-| C]] a [[#d-| D]]. | |
| − | == | + | == Input parameters == |
<span id="a-"></span> | <span id="a-"></span> | ||
=== A === | === A === | ||
| − | + | Type [[Special:MyLanguage/Datové typy#String | String]] | |
| − | + | Variable A. | |
<span id="b-"></span> | <span id="b-"></span> | ||
=== B === | === B === | ||
| − | + | Type [[Special:MyLanguage/Datové typy#String | String]] | |
| − | + | Variable B. | |
<span id="c-"></span> | <span id="c-"></span> | ||
=== C === | === C === | ||
| − | + | Type [[Special:MyLanguage/Datové typy#String | String]] | |
| − | + | Variable C. | |
<span id="d-"></span> | <span id="d-"></span> | ||
=== D === | === D === | ||
| − | + | Type [[Special:MyLanguage/Datové typy#String | String]] | |
| − | + | Variable D. | |
<span id="expression-"></span> | <span id="expression-"></span> | ||
=== Expression === | === Expression === | ||
| − | + | Type [[Special:MyLanguage/Datové typy#String | String]] | |
| − | + | Arithmetic expression that can contain: | |
| − | * | + | *Numbers |
| − | * | + | *Variables [[#a-| A]], [[#b-| B]], [[#c-| C]] a [[#d-| D]] |
| − | * | + | *Operators +, -, *, /, %, &, |, ^, !, &&, ||, ==, !=, <, >, <=, >=, <<, >> |
| − | * | + | *Brackets ( ). |
| − | * | + | *Functions floor, ceil, round |
=== Enabled === | === Enabled === | ||
| − | + | Type [[Special:MyLanguage/Datové typy#Number | Number]] | |
| − | + | Enables or disables the command. If the value is 0, the command will not be executed. | |
=== PreWait === | === PreWait === | ||
| − | + | Type [[Special:MyLanguage/Datové typy#Number | Number]] | |
| − | + | Delay in milliseconds before executing the command. It has no effect if Enabled=0. | |
=== PostWait === | === PostWait === | ||
| − | + | Type [[Special:MyLanguage/Datové typy#Number | Number]] | |
| − | + | Delay in milliseconds before executing the command. It has no effect if Enabled=0. | |
| − | == | + | == Output parameters == |
=== ExpressionResult === | === ExpressionResult === | ||
| − | + | Type [[Special:MyLanguage/Datové typy#String | String]] | |
| − | + | Evaluated result of the given expression. | |
Aktuální verze z 21. 12. 2021, 12:31
Obsah
Description
Alias: NE
Evaluates a numeric expression.
Evaluates an expression given by Expression parameter using variables A, B, C a D.
Input parameters
A
Type String
Variable A.
B
Type String
Variable B.
C
Type String
Variable C.
D
Type String
Variable D.
Expression
Type String
Arithmetic expression that can contain:
- Numbers
- Variables A, B, C a D
- Operators +, -, *, /, %, &, |, ^, !, &&, ||, ==, !=, <, >, <=, >=, <<, >>
- Brackets ( ).
- Functions floor, ceil, round
Enabled
Type Number
Enables or disables the command. If the value is 0, the command will not be executed.
PreWait
Type Number
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
PostWait
Type Number
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
Output parameters
ExpressionResult
Type String
Evaluated result of the given expression.