diff options
author | Brad King <brad.king@kitware.com> | 2023-09-08 14:26:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-08 14:26:34 (GMT) |
commit | 5924a1f0ebf544b4ac7516b0ff3f0f4e250f26e4 (patch) | |
tree | f71b39800c95f01156a652548ae6e86b30b7de66 | |
parent | 91585ad105ff611fbaa507e758a5c9043bb9d142 (diff) | |
download | CMake-5924a1f0ebf544b4ac7516b0ff3f0f4e250f26e4.zip CMake-5924a1f0ebf544b4ac7516b0ff3f0f4e250f26e4.tar.gz CMake-5924a1f0ebf544b4ac7516b0ff3f0f4e250f26e4.tar.bz2 |
Help: Document if() comparison number format
Fixes: #25237
-rw-r--r-- | Help/command/if.rst | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst index c47c71b..5d85a1f 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -228,36 +228,36 @@ Comparisons .. signature:: if(<variable|string> LESS <variable|string>) :target: LESS - True if the given string or variable's value is a valid number and less - than that on the right. + True if the given string or variable's value parses as a real number + (like a C ``double``) and less than that on the right. .. signature:: if(<variable|string> GREATER <variable|string>) :target: GREATER - True if the given string or variable's value is a valid number and greater - than that on the right. + True if the given string or variable's value parses as a real number + (like a C ``double``) and greater than that on the right. .. signature:: if(<variable|string> EQUAL <variable|string>) :target: EQUAL - True if the given string or variable's value is a valid number and equal - to that on the right. + True if the given string or variable's value parses as a real number + (like a C ``double``) and equal to that on the right. .. signature:: if(<variable|string> LESS_EQUAL <variable|string>) :target: LESS_EQUAL .. versionadded:: 3.7 - True if the given string or variable's value is a valid number and less - than or equal to that on the right. + True if the given string or variable's value parses as a real number + (like a C ``double``) and less than or equal to that on the right. .. signature:: if(<variable|string> GREATER_EQUAL <variable|string>) :target: GREATER_EQUAL .. versionadded:: 3.7 - True if the given string or variable's value is a valid number and greater - than or equal to that on the right. + True if the given string or variable's value parses as a real number + (like a C ``double``) and greater than or equal to that on the right. .. signature:: if(<variable|string> STRLESS <variable|string>) :target: STRLESS |