IF conditionals

From: Date: Sat, 19 Feb 2000 17:15:02 +0000
Subject: IF conditionals
References: 1 2 3 4 5 6 7 8 9  Groups: php.template 
Request: Send a blank email to php-template+get-184@lists.php.net to get a copy of this message
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

« previous php.template (#184) next »