소스 검색

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