CyLog Software Homepage BeanMaker v2.10
Copyright 2000-2006 CyLog Software
Introduction
Quick Guide
How the engine works
Writing Templates
   Standard Tags
   Property Loop Tags
   Switch Tags
   Include File Tag
   Regular Expression Tag
   String Function Tags
   Numeric Function Tags
   
Tutorials
Registration
License Agreement

Writing Templates - Numeric Function Tags

BeanMaker support the following numeric functions. The output is always a .

Increase:
    $inc(numeric value, value)$

Decrease:
    $dec(numeric value, value)$

The numeric parameters in the above functions can be numeric positive integer constants or BeanMaker's tags or other functions. Examples:

$inc(2,3)$         => "5"
$dec(15,4)$        => "11"

$doproperty$                          | This loop will run through properties and produce:
  $index$ and $inc($index$, 1)$   =>  |   0 and 1
$loop$                                |   1 and 2
                                      |   2 and 3 ... and so on

$inc($maxproplen$, 2)   => this will return the [maximum property length in characters] + 2
Copyright 2000-2006 CyLog Software    www.cylog.org