Get Smarty

Donate

Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

Math

Mathematische Operationen können direkt auf Variablen verwendet werden.

Example 3.6. Mathematik Beispiele


{$foo+1}

{$foo*$bar}

{* kompliziertere Beispiele *}

{$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`"}

  

Siehe auch die {math}-Funktion für komplexere Berechnungen.

Comments
No comments for this page.

Advertisement

Sponsors [info]

Sponsors