IF conditionals
[email protected] (Monte Ohrt) Sat, 19 Feb 2000 11:15:02 -0600
| Newsgroups | php.template |
|---|---|
| Organization | ispi |
| Message-ID | <[email protected]> |
Currently, IF conditionals include =, !=, <, >, <=, >=.
What about supporting an alternative syntax, like:
eq, ne, lt, gt, lte, gte
Also, how will the comparisons work if one is a number
and one is a string?
{{if 122 < "0123"}}
We could separate the comparison behavior out with the syntax
of the conditional operator, or we could let the php
template engine intelligently decide how variables
are compared with simple rules (I like the second idea, it's easier
for a designer.)
-Monte