Modifier: length


Returns the number of items in an array or characters in a string.

array:
  - Taylor Swift
  - Left Shark
  - Leroy Jenkins
string: LEEEEROOOYYYY JEEENKINNNSS!
{{ array | length }}
{{ string | length }}
3
27

Additional Reading

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

Last modified on March 31, 2016