cvs: phpdoc /en/language control-structures.xml

From: Date: Thu, 20 Dec 2001 23:17:37 +0000
Subject: cvs: phpdoc /en/language control-structures.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969340185@lists.php.net to get a copy of this message
jimw Thu Dec 20 18:17:37 2001 EDT Modified files: /phpdoc/en/language control-structures.xml Log: if: link to information on what evaluates to &false; Index: phpdoc/en/language/control-structures.xml diff -u phpdoc/en/language/control-structures.xml:1.47 phpdoc/en/language/control-structures.xml:1.48 --- phpdoc/en/language/control-structures.xml:1.47 Mon Dec 17 18:00:19 2001 +++ phpdoc/en/language/control-structures.xml Thu Dec 20 18:17:37 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.47 $ --> +<!-- $Revision: 1.48 $ --> <chapter id="control-structures"> <title>Control Structures</title> @@ -31,10 +31,14 @@ </informalexample> </para> <simpara> - As described in the section about expressions, expr is evaluated - to its truth value. If <replaceable>expr</replaceable> evaluates - to &true;, PHP will execute statement, and if it - evaluates to &false; - it'll ignore it. + As described in <link linkend="language.expressions">the section about + expressions</link>, <replaceable>expr</replaceable> is evaluated to its + Boolean value. If <replaceable>expr</replaceable> evaluates to &true;, + PHP will execute <replaceable>statement</replaceable>, and if it evaluates + to &false; - it'll ignore it. More information about what values evaluate + to &false; can be found in the <link + linkend="language.types.boolean.casting">'Converting to boolean'</link> + section>. </simpara> <para> The following example would display <computeroutput>a is bigger

« previous php.doc (#969340185) next »