|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
slincher Smarty Rookie
Joined: 26 Apr 2005 Posts: 5
|
Posted: Sat Aug 13, 2005 7:50 am Post subject: case blocks |
|
|
hmm i couldn't find something like this?:
{case-start}
{case $i = 20}
case = <i>20</i>
{case $i = 30}
case = <i>30</i>
{case $i = 50}
case = <i>50</i>
{case $i > 80}
case is bigger then <i>80</i>
{case-end} |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Sat Aug 13, 2005 8:49 am Post subject: |
|
|
use {if}/{elseif}/{/if} |
|
Back to top |
|
slincher Smarty Rookie
Joined: 26 Apr 2005 Posts: 5
|
Posted: Sat Aug 13, 2005 9:49 am Post subject: |
|
|
hmm okeej but that's 'dirty' coded whenever that happens all the time |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|