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

¿Como alterar el incremento de la iteracion de un section?

 
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 -> Language: Spanish
View previous topic :: View next topic  
Author Message
lucas_1050
Smarty Rookie


Joined: 07 Feb 2006
Posts: 12

PostPosted: Tue Feb 07, 2006 3:57 pm    Post subject: ¿Como alterar el incremento de la iteracion de un section? Reply with quote

hOLA, que tal,

tengo un section, pero necesito alterar las iteraciones si se cumple una determinada condicion dentro del section
por ejemplo en php seria algo asi:

Code:

for ($j=0;$j<$numTextarea;$j++){
      if($textarea[$j]=="Combo"){                       
         $j=$j+1;
      }
}


cuando la matriz $textarea sea igual a la cadena "Combo" la iteracion se ALTERARA pues se incrementara en 1 mas, es decir si estaba en la iteracion 2 la siguiente $j sera igual a 4, pero cuando no se cumple la condicion la iteracion se incrementa normalmente en 1
Gracias por la ayuda,
Saludos,
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 -> Language: Spanish 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