ソースを参照

Merge topic 'doc-if-floating-point'

6b170578b8 Help: Non-zero floating point numbers are true in if() expressions

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6834
Craig Scott 4 年 前
コミット
ca206d6e46
1 ファイル変更2 行追加1 行削除
  1. 2 1
      Help/command/if.rst

+ 2 - 1
Help/command/if.rst

@@ -52,7 +52,8 @@ Basic Expressions
 
 ``if(<constant>)``
  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