Modifier: is_numeric


Returns true if variable is a number or numeric string.

sequence: 4815162342
another_sequence: just type 4 8 15 16 23 42
{{ if sequence | is_numeric }}
{{ if another_sequence | is_numeric }}
true
false

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016