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

{cycle} problem

 
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 -> General
View previous topic :: View next topic  
Author Message
blue
Smarty Rookie


Joined: 07 Aug 2003
Posts: 7

PostPosted: Wed Sep 17, 2003 9:06 am    Post subject: {cycle} problem Reply with quote

Hi, i have a problem with the cycle tag.

{cycle values="#ffce00,#FFFFFF" advance="$check[inhalt1]"}

the string $check is an array whick contains the following
Array (6)
0 => false
1 => false
2 => false
3 => false
4 => true
5 => true

I want to accomplish that when the array value is false the cycle doesnt continues, but it wont work...seams like i have to print the $check[inhalt1]"} .... can someone help me?
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Wed Sep 17, 2003 10:23 am    Post subject: Reply with quote

i think {cycle values="#ffce00,#FFFFFF" advance="$check[inhalt1]"}
will pass a string containing the word "false" to the advance-attribute. this string is consider boolean true.

i'd try: {cycle values="#ffce00,#FFFFFF" advance=$check[inhalt1]}
(note no quotes). this should pass a boolean false to cycle/advance.

greetings
messju
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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 -> General 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