summaryrefslogtreecommitdiff
path: root/doc/doc-docbook
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2012-01-03 02:41:57 -0500
committerPhil Pennock <pdp@exim.org>2012-01-03 02:41:57 -0500
commit8ebb1c9ea93eb27500756a578640d890b53264d3 (patch)
treef790c26264f249c24c8d4db2cb196f3e446c2865 /doc/doc-docbook
parent4a891427d0a3b443ab636fa6c978d2367d077895 (diff)
bool{} is false for empty strings
fixes bug 1193 reported by Jasen Betts.
Diffstat (limited to 'doc/doc-docbook')
-rw-r--r--doc/doc-docbook/spec.xfpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt
index 951cd5286..12d813781 100644
--- a/doc/doc-docbook/spec.xfpt
+++ b/doc/doc-docbook/spec.xfpt
@@ -9871,7 +9871,10 @@ zero.
This condition turns a string holding a true or false representation into
a boolean state. It parses &"true"&, &"false"&, &"yes"& and &"no"&
(case-insensitively); also positive integer numbers map to true if non-zero,
-false if zero. Leading and trailing whitespace is ignored.
+false if zero.
+An empty string is treated as false.
+Leading and trailing whitespace is ignored;
+thus a string consisting only of whitespace is false.
All other string values will result in expansion failure.
When combined with ACL variables, this expansion condition will let you