{number-filter}
Plugin: Reporting Plugin, from version 1.0
This filter will ensure that the specified 'prefix:key' value is a number, and that it matches the required criteria.
Description
It must be used in a reporter macro.
Usage
{number-filter:prefix:key|minValue=[number]|maxValue=[number]|decimal=true/false|required=true/false}
Parameters
| Name | Required | Default | Description |
|---|---|---|---|
| [default]/key | | The key value to filter on. | |
| minValue | | If specified, the number must be greater than or equal to the specified value. | |
| maxValue | | If specified, the number must be less than or equal to the specified value. | |
| decimal | | If specified, setting it to 'true' will require that the number is a decimal type, and setting it to 'false' will require it is a whole number. By default either is accepted. | |
| required | | false
| If set to 'true', the key value must have a value of some sort - it may not be empty. |
Discussions