diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-10 11:55:34 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-10 11:55:34 (GMT) |
| commit | 72c49f69099c98bd55334dbad3d68645c72bc707 (patch) | |
| tree | 0debb19ded04cad467e9517c2299fcb5b41ba197 /doc/expr.n | |
| parent | feb336f6b3663f107c978288f063f1e7cf9b2458 (diff) | |
| parent | 44d6e3ab5ea76fb135058f21fde9dfebdbbd035b (diff) | |
| download | tcl-72c49f69099c98bd55334dbad3d68645c72bc707.zip tcl-72c49f69099c98bd55334dbad3d68645c72bc707.tar.gz tcl-72c49f69099c98bd55334dbad3d68645c72bc707.tar.bz2 | |
Merge 8.7. Tweak "tclreg" directory/library name and tclLoad.c, such that the entry point of the "dde" and "registry" extensions can be guessed correctly
Diffstat (limited to 'doc/expr.n')
| -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 |
