RE: [SMARTY] mod function
| From: | Mark Priatel | Date: | Thu, 04 Sep 2003 04:24:07 +0000 |
| Subject: | RE: [SMARTY] mod function | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10167@lists.php.net to get a copy of this message | ||
Not really smarty related -- mod (short for modulus) an operator common
to most programming languages.
Here's a link to a general explanation of its use:
http://www.cprogramming.com/tutorial/modulus.html
---------------------------
Mark Priatel
Iolog Web Communications
www.iolog.com
-----Original Message-----
From: Sn!per [mailto:sniper@home.net.my]
Sent: Wednesday, September 03, 2003 10:38 PM
To: smarty-general@lists.php.net
Subject: [SMARTY] mod function
there is an example at
http://smarty.php.net/contribs/examples/dynamic_table_columns/table.tpl.
txt that made use of a mod function (?)
...
...
{if not ($smarty.section.numloop.rownum mod $cols)}
...
...
i tried to locate this function under smarty's man pages but to no
avail. could somebody briefly describe its usage please.
rgds.
---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php