equal
deleted
inserted
replaced
4 Evaluates expression and executes result string as command. |
4 Evaluates expression and executes result string as command. |
5 Expression evaluation rules: |
5 Expression evaluation rules: |
6 * all operators have the same precedence; |
6 * all operators have the same precedence; |
7 * supported operators: |
7 * supported operators: |
8 . string concatenation |
8 . string concatenation |
|
9 : string head |
|
10 ^ string tail |
9 + binary plus / string concatenation |
11 + binary plus / string concatenation |
10 - binary minus |
12 - binary minus |
11 * multiplication / string replication |
13 * multiplication / string replication |
12 / division |
14 / division |
13 % division remain |
15 % division remain |
23 * to enable parentheses in character strings current implementation ignores anything after extra closing paren - you may use this as a sort of comment... |
25 * to enable parentheses in character strings current implementation ignores anything after extra closing paren - you may use this as a sort of comment... |
24 |
26 |
25 Example: |
27 Example: |
26 /eval "echo 2 + 2 = " . (2+2) |
28 /eval "echo 2 + 2 = " . (2+2) |
27 /eval "set ping_interval = " . (ping_interval + 1) ) this example probably should use /let command. |
29 /eval "set ping_interval = " . (ping_interval + 1) ) this example probably should use /let command. |
|
30 /eval "echo " . (ssl_fingerprint : 5) . "..." . (ssl_fingerprint ^ 5) ) negative offsets are also supported |