From fa883958b7d6d7f657b13eeddb79e9cd47117170 Mon Sep 17 00:00:00 2001 From: boots Date: Wed, 10 Dec 2003 08:08:25 +0000 Subject: [PATCH] Added table to language.function.if to describe qualifiers --- docs/designers.sgml | 124 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 115 insertions(+), 9 deletions(-) diff --git a/docs/designers.sgml b/docs/designers.sgml index 8c74d57e..996ca0ae 100644 --- a/docs/designers.sgml +++ b/docs/designers.sgml @@ -2450,15 +2450,121 @@ index.tpl if statements in Smarty have much the same flexibility as php if statements, with a few added features for the template engine. - Every if must be paired with an - /if. else and - elseif are also permitted. "eq", "ne","neq", - "gt", "lt", "lte", "le", "gte" "ge","is even","is odd", "is not - even","is not odd","not","mod","div by","even by","odd - by","==","!=",">", "<","<=",">=" are all valid conditional - qualifiers, and must be separated from surrounding elements by - spaces. - + Every {if} must be paired with an + {/if}. {else} and + {elseif} are also permitted. The following lists + the recognized conditional qualifiers, which must be separated from + surrounding elements by spaces. + + + + + + + + + + qualifier + Alternatives + Common Name + Meaning + + + + + == + eq + equals + same as PHP == + + + != + ne, neq + not equals + same as PHP != + + + > + gt + greater than + same as PHP > + + + < + lt + less than + same as PHP < + + + >= + gte, ge + greater than or equal + same as PHP >= + + + <= + lte, le + less than or equal + same as PHP <= + + + is even +   + even number + compared value is an even number + + + is not even +   + not an even number + compared value is not an even number + + + is odd +   + odd number + compared value is an odd number + + + is not odd +   + not an odd number + compared value is an not an odd number + + + not +   + unary-negation + same as PHP ! + + + % + mod + modulous + same as PHP % + + + div by +   + divisible by + same as PHP $a % $b == 0 + + + even by +   +   + division results in an even number + + + odd by +   +   + division results in an odd number + + + + + if statements