summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Help/command/if.rst16
1 files changed, 9 insertions, 7 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst
index ea5de7f..1cd9965 100644
--- a/Help/command/if.rst
+++ b/Help/command/if.rst
@@ -187,10 +187,11 @@ Possible conditions are:
``if(<variable|string> IN_LIST <variable>)``
True if the given element is contained in the named list variable.
-``if(DEFINED <variable>)``
- True if the given variable is defined. It does not matter if the
- variable is true or false just if it has been set. (Note macro
- arguments are not variables.)
+``if(DEFINED <name>|ENV{<name>})``
+ True if a variable or environment variable
+ with given ``<name>`` is defined.
+ The value of the variable does not matter.
+ Note that macro arguments are not variables.
``if((condition) AND (condition OR (condition)))``
The conditions inside the parenthesis are evaluated first and then
@@ -270,6 +271,7 @@ A quoted or bracketed variable or keyword will be interpreted as a
string and not dereferenced or interpreted.
See policy :policy:`CMP0054`.
-There is no short form for environment or cache :ref:`Variable References`.
-They can be referenced as ``$ENV{<name>}`` or ``$CACHE{<name>}``
-wherever the above-documented condition syntax accepts <variable|string>.
+There is no automatic evaluation for environment or cache
+:ref:`Variable References`. Their values must be referenced as
+``$ENV{<name>}`` or ``$CACHE{<name>}`` wherever the above-documented
+condition syntax accepts ``<variable|string>``.
>* Doc: Added the standard three clause BSD license header.David Boddie2010-07-071-1/+41 * I've cleaned up the qdoc file a bit.Michael D Scull2010-07-071-1/+2 * correction of snippet tagsMichael D Scull2010-07-0714-8/+45 * integrating modelview tutorial in the build system, first attemptRoland Wolf2010-07-072-1/+3 * Rolands ModelView SourceMichael D Scull2010-07-0739-0/+809 * Fix in Addressbook tutorialRobert Loehning2010-06-045-0/+5 * Doc: Updated example license to three clause BSD license.David Boddie2010-05-1958-1600/+1542 * Doc: Fixed the row number for a widget in two parts of the tutorial.David Boddie2010-03-042-2/+2 * Update copyright year to 2010Jason McDonald2010-01-0658-58/+58 * Update license headers again.Jason McDonald2009-09-09