numeric
Determine if a given variable's value is numeric.
Sample Usage
{{ if age|numeric }}
Looks correct to me.
{{ endif }}
This will display a string if the age
variable’s value is numeric.
Parameters
This modifier has no parameters.
Determine if a given variable's value is numeric.
{{ if age|numeric }}
Looks correct to me.
{{ endif }}
This will display a string if the age
variable’s value is numeric.
This modifier has no parameters.
This article was last updated on March 30th, 2016. Find an error? Please let us know!