You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_subexpression_ has the same forms as _expression_.
22
22
23
23
If _subexpression_s exist, they are evaluated before any other operators.
24
24
25
25
Available operators:
26
-
*`&&` or `and` - logical AND
27
-
*`||` or `or` - logical OR
28
-
*`!` or `not` - logical NOT (inversion)
29
-
*`^` or `xor` - XOR (exclusive-OR)
30
-
*`==` or `equals` - equality comparison.
31
-
*`!=` - inequality comparison. To use words, use a subexpression.
32
-
*`<` - less than (valid for numbers only)
33
-
*`<=` - less than or equal to (valid for numbers only)
34
-
*`>` - greater than (valid for numbers only)
35
-
*`>=` - greater than or equal to (valid for numbers only)
36
-
* Anything supported by exprtk [^1]
37
-
* Generic variables and file I/O are not supported.
38
-
* Any exprtk expressions that involve `{}`s are not supported.
39
-
40
-
Available keywords:
41
-
* 'false'
42
-
* 'true'
43
-
44
-
To apply a single condition to multiple lines, repeat it once for each line.
26
+
27
+
*`&&` or `and`: logical AND
28
+
*`||` or `or`: logical OR
29
+
*`!` or `not`: logical NOT (inversion)
30
+
*`^` or `xor`: XOR (exclusive-OR)
31
+
*`==` or `equals`: equality comparison
32
+
*`!=`: inequality comparison. To use words, use a subexpression.
33
+
*`<`: less than (valid for numbers only)
34
+
*`<=`: less than or equal to (valid for numbers only)
35
+
*`>`: greater than (valid for numbers only)
36
+
*`>=`: greater than or equal to (valid for numbers only)
37
+
* Anything supported by [exprtk](http://www.partow.net/programming/exprtk/index.html) (except for generic variables, file I/O and expressions that involve `{}`)
38
+
39
+
The `true` and `false` keywords are available.
40
+
41
+
To apply a single condition to multiple lines, repeat it once for each line:
42
+
45
43
````
46
44
{if [layer_num] == 10}M104 S210
47
45
{if [layer_num] == 10}M600
48
46
````
49
47
48
+
If a conditional expression evaluates to false, all the characters until the end of the line are removed.
49
+
If a conditional expression fails to parse, it's silently left untouched.
50
+
51
+
Expressions may be chained for an implicit AND:
50
52
51
-
* If a conditional expression evaluates to false, all the characters until the end of the line are removed.
52
-
* If a conditional expression fails to parse, it's silently left untouched.
0 commit comments