Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

case blocks

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
slincher
Smarty Rookie


Joined: 26 Apr 2005
Posts: 5

PostPosted: Sat Aug 13, 2005 7:50 am    Post subject: case blocks Reply with quote

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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sat Aug 13, 2005 8:49 am    Post subject: Reply with quote

use {if}/{elseif}/{/if}
Back to top
View user's profile Send private message Send e-mail Visit poster's website
slincher
Smarty Rookie


Joined: 26 Apr 2005
Posts: 5

PostPosted: Sat Aug 13, 2005 9:49 am    Post subject: Reply with quote

hmm okeej but that's 'dirty' coded whenever that happens all the time
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Sat Aug 13, 2005 8:32 pm    Post subject: Reply with quote

http://www.phpinsider.com/smarty-forum/viewtopic.php?t=2659

??
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP