By: RwD
Date: 2004-05-18
Time: 21:54
|
more operators
seems like a simple, logical ;), step:
the if statement only seems to take = and != (Manual)
But could it also take > and <? or even better also <= and >=??
That would be great, saves me from making the check in PHP
|
By: Skrol29
Date: 2004-05-18
Time: 22:50
|
Re: more operators
Yes, you're right. It's easy to implement.
Except that TBS has to when it is a string or a number.
|
By: RwD
Date: 2004-05-19
Time: 23:45
|
Re: more operators
sorry?
I do not get your point :S
just use the standard PHP way to do it..
-when the condition parameters are in single quotes compare as string
-when not in string treat it as a number when it can be converted to one...
Is that good enough?
|
By: Skrol29
Date: 2004-05-19
Time: 23:52
|
Re: more operators
That's a good tip.
I'll do this way.
Yes that's ggod enought, but this feature will slow down a bit the condition check.
|
By: RwD
Date: 2004-05-21
Time: 08:48
|
Re: more operators
I don't think any other template system will do it faster??
and it is only a millisec, right?
|
By: Skrol29
Date: 2004-05-21
Time: 11:49
|
Re: more operators
You're right.
It could be sensible if you put conditional tags in a block with many lines. But I agree, it's to be done.
|
|
Posting in progress.
Please wait...
|