|
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 |
boup Smarty Rookie
Joined: 25 Aug 2010 Posts: 5
|
Posted: Wed Sep 08, 2010 12:36 pm Post subject: [résolu]{math equation} et {assign} |
|
|
Bonjour,
Je souhaiterai savoir si il existe un moyen, quelconque, de mettre le résultat obtenu par {math equation='x-y' x=7 y=$smarty.foreach.count.iteration%7} dans {assign var='compteur' value='?'} ?
Pour obtenir un résultat comme ci-dessous. Cela ne fonctionne pas évidement:
{assign var='compteur' value="math equation='x-y' x=7 y=$smarty.foreach.count.iteration%7"}
Si vous avez, une idée sur la question je suis preneur
Merci
boup
Last edited by boup on Mon Oct 04, 2010 1:45 pm; edited 1 time in total |
|
Back to top |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Mon Oct 04, 2010 9:50 am Post subject: |
|
|
Bonjour,
Simplement faire un
Code: |
{math assign="compteur" equation='x-y' x=7 y=$smarty.foreach.count.iteration%7}
|
|
|
Back to top |
|
boup Smarty Rookie
Joined: 25 Aug 2010 Posts: 5
|
Posted: Mon Oct 04, 2010 1:45 pm Post subject: |
|
|
Merci beaucoup =) |
|
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
|