Counts the number of characters in a variable or text string. Use boolean parameter "true" to include whitespaces into the total count.

modifier

{{"text"|count_characters}}

Arguments

ArgumentsDescription
1A boolean to indicate whether spaces should be included in the count. This defaults to false.

Examples

Example

{{$message ='Welcome! Here is Your Special Offer!'}}


{{$message|count_characters}}
{{$message|count_characters:true}}


Outcome:

31
36