diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-11 16:32:51 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-11 16:32:51 (GMT) |
commit | 8adc51759b00eaa8623cd08ccbacda003fad7de3 (patch) | |
tree | a6bd62cbe56a2880a4e9b05f4cf36fc7d58d8d1e /doc | |
parent | cccc07aa2829b401bc101caeb9890a7e876081a2 (diff) | |
parent | c41e7ffff57b8aea49698caa04d8bedee8f92143 (diff) | |
download | tcl-8adc51759b00eaa8623cd08ccbacda003fad7de3.zip tcl-8adc51759b00eaa8623cd08ccbacda003fad7de3.tar.gz tcl-8adc51759b00eaa8623cd08ccbacda003fad7de3.tar.bz2 |
Merge 8.7
Diffstat (limited to 'doc')
-rw-r--r-- | doc/expr.n | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -41,6 +41,12 @@ When an expression evaluates to an integer, the value is the decimal form of the integer, and when an expression evaluates to a floating-point number, the value is the form produced by the \fB%g\fR format specifier of Tcl's \fBformat\fR command. +.PP +.VS "TIP 582" +You can use \fB#\fR at any point in the expression (except inside double +quotes or braces) to start a comment. Comments last to the end of the line or +the end of the expression, whichever comes first. +.VE "TIP 582" .SS OPERANDS .PP An expression consists of a combination of operands, operators, parentheses and @@ -487,7 +493,9 @@ value of true: .PP .CS set isTrue [\fBexpr\fR { + # Does the environment variable exist, and... [info exists ::env(SOME_ENV_VAR)] && + # ...does it contain a proper true value? [string is true -strict $::env(SOME_ENV_VAR)] }] .CE |