ez.no / exponential / documentation / reference / template operators / mathematics / inc
$input_number|inc( value )
| Name | Type | Description | Required |
|---|---|---|---|
| value | number | Value to increment. | Only if input is omitted. |
Number (input/parameter incremented with one).
This operator increments either the input or the first parameter with one. If both are given, it is the value of the parameter that will be incremented and returned.
Example 1
{255|inc}
returns 256.
Example 2
{let i=255} {set i=inc( $i )} {$i} {/let}
returns 256.
log in or create a user account to comment.
Comments