Web page hosting and cheap domain registration register services
 

Sponsers:

 

 

 

Smarty Manual
PrevChapter 3. Basic SyntaxNext

Math

Math can be applied directly to variable values.

Example 3-5. math examples

{$foo+1}

{$foo*$bar}

{* some more complicated examples *}

{$foo->bar-$bar[1]*$baz->foo->bar()-3*7}

{if ($foo+$bar.test%$baz*134232+10+$b+10)}

{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"}

{assign var="foo" value="`$foo+$bar`"}

PrevHomeNext
Embedding Vars in Double QuotesUpEscaping Smarty Parsing
 

 

 

 

Search engine submission by Seosubmit.com | Cheap domain by Cheap Domain Registrar  

Disclaimers: This document is provided as free service for the benefits of Active-Venture.com's web hosting customers only.

 
Quotes: Every normal man must be tempted at times to spit upon his hands, hoist the black flag and begin slitting throats.It's a funny thing about life; if you refuse to accept anything but the best, you very often get it.