|
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 |
lucas_1050 Smarty Rookie
Joined: 07 Feb 2006 Posts: 12
|
Posted: Tue Feb 07, 2006 3:57 pm Post subject: ¿Como alterar el incremento de la iteracion de un section? |
|
|
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 |
|
|
|
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
|