StrExpression
Obsah
Description
Alias: SE
Evaluate string expressions
Evaluates the expression given in the Expression parameter with the option of using parameters A, B, C, D, E, F, G and H as variables.
Input parameters
A
Type String
Variable A.
B
Type String
Variable B.
C
Type String
Variable C.
D
Type String
Variable D.
E
Type String
Variable E.
F
Type String
Variable F.
G
Type String
Variable G.
H
Type String
Variable H.
Expression
Type String
Mathematical expression that can contain:
- Whole numbers
- Strings(e.g. "abc")
- Variables A, B, C, D, E, F, G a H
- Operators (+, -, *, /, %, <, >, <=, >= , ==, !=, !, <<, >>, ^, &, |, &&, ||)
- Parentheses ( )
- Functions:
- length(string str)
- pos(string str, string substr)
- substr(string str, int offset)
- substr(string str, int offset, int length)
- trim(string str)
- replace(string str, string from, string to)
- replace(string str, string from, string to, bool replace_all)
- lowercase(string str)
- uppercase(string str)
- if(bool condition, string then, string else)
- strip_diacritics(string str)
Enabled
Type Number
Enables or disables the command. If the value is 0, the command will not execute.
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.
Výstupní parametry
ExpressionResult
Type String
Výsledek zadaného výrazu.