diff options
-rw-r--r-- | doc/manual.xml.head | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/manual.xml.head b/doc/manual.xml.head index 5d325f40..dea8eeaa 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -7767,6 +7767,25 @@ echo (equal "one two" "`echo one two`") ==> "t" note: backticks inside double quotes generates a single argument: "one two" </screen> + <para> + Note that boolean configuration variables evaluate to the strings + "yes" or "no". You can see the value of other + kinds of configuration variables using the + <link linkend="echo">echo</link> command. + </para> +<screen> +unset allow_ansi +echo $allow_ansi + ===> "no" + +# the correct way to test a boolean: +echo (if (equal $allow_ansi "yes") "set" "unset") + ===> "unset" + +# the incorrect way to test a boolean: +echo (if $allow_ansi "set" "unset") + ===> "set" +</screen> </sect3> <sect3 id="muttlisp-not"> |