From 6b170578b891caafe5c518e9f4d53c0bd914b8d1 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Sun, 2 Jan 2022 20:56:05 +1100 Subject: Help: Non-zero floating point numbers are true in if() expressions Fixes: #22991 --- Help/command/if.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Help/command/if.rst b/Help/command/if.rst index 6957142..a729b1e 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -52,7 +52,8 @@ Basic Expressions ``if()`` True if the constant is ``1``, ``ON``, ``YES``, ``TRUE``, ``Y``, - or a non-zero number. False if the constant is ``0``, ``OFF``, + or a non-zero number (including floating point numbers). + False if the constant is ``0``, ``OFF``, ``NO``, ``FALSE``, ``N``, ``IGNORE``, ``NOTFOUND``, the empty string, or ends in the suffix ``-NOTFOUND``. Named boolean constants are case-insensitive. If the argument is not one of these specific -- cgit v0.12