cvs: smarty /docs designers.sgml

"boots" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsboots1071222127@cvsserver>
boots		Fri Dec 12 04:42:07 2003 EDT

  Modified files:              
    /smarty/docs	designers.sgml 
  Log:
  Updated language.function.if with additional annotation and to fix error that broke docs build process
  
Index: smarty/docs/designers.sgml
diff -u smarty/docs/designers.sgml:1.91 smarty/docs/designers.sgml:1.92
--- smarty/docs/designers.sgml:1.91	Thu Dec 11 14:24:21 2003
+++ smarty/docs/designers.sgml	Fri Dec 12 04:42:06 2003
@@ -2454,7 +2454,7 @@
 			<emphasis>{/if}</emphasis>. <emphasis>{else}</emphasis> and
 			<emphasis>{elseif}</emphasis> are also permitted. All PHP conditionals
 			are recognized, such as <emphasis>||</emphasis>, <emphasis>or</emphasis>,
-            <emphasis>&&</emphasis>, <emphasis>and</emphasis>, etc.
+            <emphasis>&amp;&amp;</emphasis>, <emphasis>and</emphasis>, etc.
 			</para>
 
 			<para>
@@ -2469,12 +2469,14 @@
                 <colspec colname="alternates" align="center" />
                 <colspec colname="meaning" />
                 <colspec colname="example" />
+                <colspec colname="php" />
                 <thead>
                     <row>
                         <entry>Qualifier</entry>
                         <entry>Alternates</entry>
                         <entry>Syntax Example</entry>
                         <entry>Meaning</entry>
+                        <entry>PHP Equivalent</entry>
                     </row>
                 </thead>
                 <tbody>
@@ -2482,79 +2484,92 @@
                         <entry>==</entry>
                         <entry>eq</entry>
                         <entry>$a eq $b</entry>
-                        <entry>equals <emphasis>(PHP: ==)</emphasis></entry>
+                        <entry>equals</entry>
+                        <entry>==</entry>
                     </row>
                     <row>
                         <entry>!=</entry>
                         <entry>ne, neq</entry>
                         <entry>$a neq $b</entry>
-                        <entry>not equals <emphasis>(PHP: !=)</emphasis></entry>
+                        <entry>not equals</entry>
+                        <entry>!=</entry>
                     </row>
                     <row>
                         <entry>&gt;</entry>
                         <entry>gt</entry>
                         <entry>$a gt $b</entry>
-                        <entry>greater than <emphasis>(PHP: &gt;)</emphasis></entry>
+                        <entry>greater than</entry>
+                        <entry>&gt;</entry>
                     </row>
                     <row>
                         <entry>&lt;</entry>
                         <entry>lt</entry>
                         <entry>$a lt $b</entry>
-                        <entry>less than <emphasis>(PHP: &lt;)</emphasis></entry>
+                        <entry>less than</entry>
+                        <entry>&lt;</entry>
                     </row>
                     <row>
                         <entry>&gt;=</entry>
                         <entry>gte, ge</entry>
                         <entry>$a ge $b</entry>
-                        <entry>greater than or equal <emphasis>(PHP: &gt;=)</emphasis></entry>
+                        <entry>greater than or equal</entry>
+                        <entry>&gt;=</entry>
                     </row>
                     <row>
                         <entry>&lt;=</entry>
                         <entry>lte, le</entry>
                         <entry>$a le $b</entry>
-                        <entry>less than or equal <emphasis>(PHP: &lt;=)</emphasis></entry>
+                        <entry>less than or equal</entry>
+                        <entry>&lt;=</entry>
                     </row>
                     <row>
                         <entry>!</entry>
                         <entry>not</entry>
                         <entry>not $a</entry>
-                        <entry>negation (unary) <emphasis>(PHP: !)</emphasis></entry>
+                        <entry>negation (unary)</entry>
+                        <entry>!</entry>
                     </row>
                     <row>
                         <entry>%</entry>
                         <entry>mod</entry>
                         <entry>$a mod $b</entry>
-                        <entry>modulous <emphasis>(PHP: %)</emphasis></entry>
+                        <entry>modulous</entry>
+                        <entry>%</entry>
                     </row>
                     <row>
                         <entry>is [not] div by</entry>
-                        <entry>&nbsp;</entry>
+                        <entry></entry>
                         <entry>$a is not div by 4</entry>
-                        <entry>divisible by <emphasis>(PHP: $a % $b == 0)</emphasis></entry>
+                        <entry>divisible by</entry>
+                        <entry>$a % $b == 0</entry>
                     </row>
                     <row>
-                      <entry>is [not] even</entry>
-                      <entry>&nbsp;</entry>
-                      <entry>$a is not even</entry>
-                      <entry>[not] an even number (unary)</entry>
+                        <entry>is [not] even</entry>
+                        <entry></entry>
+                        <entry>$a is not even</entry>
+                        <entry>[not] an even number (unary)</entry>
+                        <entry>$a % 2 == 0</entry>
                     </row>
                     <row>
-                      <entry>is [not] even by</entry>
-                      <entry>&nbsp;</entry>
-                      <entry>$a is not even by $b</entry>
-                      <entry>[not] an even grouping</entry>
+                        <entry>is [not] even by</entry>
+                        <entry></entry>
+                        <entry>$a is not even by $b</entry>
+                        <entry>grouping level [not] even</entry>
+                        <entry>($a / $b) % 2 == 0</entry>
                     </row>
                     <row>
-                      <entry>is [not] odd</entry>
-                      <entry>&nbsp;</entry>
-                      <entry>$a is not odd</entry>
-                      <entry>[not] an odd number (unary)</entry>
+                        <entry>is [not] odd</entry>
+                        <entry></entry>
+                        <entry>$a is not odd</entry>
+                        <entry>[not] an odd number (unary)</entry>
+                        <entry>$a % 2 != 0</entry>
                     </row>
                     <row>
-                      <entry>is [not] odd by</entry>
-                      <entry>&nbsp;</entry>
-                      <entry>$a is not odd by $b</entry>
-                      <entry>[not] an odd grouping</entry>
+                        <entry>is [not] odd by</entry>
+                        <entry></entry>
+                        <entry>$a is not odd by $b</entry>
+                        <entry>[not] an odd grouping</entry>
+                        <entry>($a / $b) % 2 != 0</entry>
                     </row>
                 </tbody>
 		  </tgroup>

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.