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

smarty und rechenoperationen

 
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: German
View previous topic :: View next topic  
Author Message
judy
Smarty n00b


Joined: 01 Jan 2005
Posts: 1

PostPosted: Sat Jan 01, 2005 10:15 pm    Post subject: smarty und rechenoperationen Reply with quote

wie kann ich mit smarty den rest einer division ausrechnen lassen?
welche rechenoperationen kann ich mit smarty überhaupt durchführen? ich finde dazu im handbuch nichts.
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Sun Jan 02, 2005 6:42 pm    Post subject: Reply with quote

der modulo-operator funktioniert mit simple math:
{$a%12}
oder in {if} (if hat seine eingene syntax, die nur in {if} funktioniert):

{if $a % 12 == 0} oder
{if $a mod 12 == 0} (beide statements sind äquivalent)

HTH
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 -> Language: German 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