Hi couch!
Actually a simple question.
Can we use add tag like this?
Thx couch!
Actually a simple question.
Can we use add tag like this?
- Code: Select all
<cms:add my_count '10%' />
Thx couch!
<cms:add my_count '10%' />
KK wrote: Hi,
The cms:add tag internally (not surprisingly) uses PHP and the addition logic of PHP is to try and convert (i.e. cast) the operands to numbers. So the '10%' would actually result in just '10'.
Therefore, <cms:add my_count '10%' /> would be exactly the same as <cms:add my_count '10' />.
Anyway, can you please let me know what exactly were you trying to achieve by adding '10%'?
Thanks.