summaryrefslogtreecommitdiff
path: root/Source/cmIfCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r--Source/cmIfCommand.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index 90d144793f..74692b7d9a 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -121,16 +121,24 @@ public:
"Then any EQUAL, LESS, GREATER, STRLESS, STRGREATER, STREQUAL, MATCHES "
"will be evaluated. Then NOT operators and finally AND, OR operators "
"will be evaluated. Possible expressions are:\n"
- " if(variable)\n"
- "True if the variable's value is not empty, 0, N, NO, OFF, FALSE, "
- "NOTFOUND, or <variable>-NOTFOUND.\n"
- " if(NOT variable)\n"
- "True if the variable's value is empty, 0, N, NO, OFF, FALSE, "
- "NOTFOUND, or <variable>-NOTFOUND.\n"
- " if(variable1 AND variable2)\n"
- "True if both variables would be considered true individually.\n"
- " if(variable1 OR variable2)\n"
- "True if either variable would be considered true individually.\n"
+ " if(<constant>)\n"
+ "True if the constant is 1, ON, YES, TRUE, Y, or a non-zero number. "
+ "False if the constant is 0, OFF, NO, FALSE, N, IGNORE, \"\", "
+ "or ends in the suffix '-NOTFOUND'. "
+ "Named boolean constants are case-insensitive."
+ "\n"
+ " if(<variable>)\n"
+ "True if the variable's value is not a false constant."
+ "\n"
+ " if(NOT <expression>)\n"
+ "True if the expression is not true."
+ "\n"
+ " if(<expr1> AND <expr2>)\n"
+ "True if both expressions would be considered true individually."
+ "\n"
+ " if(<expr1> OR <expr2>)\n"
+ "True if either expression would be considered true individually."
+ "\n"
" if(COMMAND command-name)\n"
"True if the given name is a command, macro or function that can be "
"invoked.\n"