truncatewords


Returns a specific number of words from a string


Syntax


{{ <Parameter> | truncatewords: <Truncate>}}



Arguments

Parameter - A string literal or name of the input parameter to be truncated


Truncate - An integer value representing the amount of words to include before truncating the rest


Example 1:

InputParameter Value


'Four score and seven years ago'



Input


{{ InputParameter | truncatewords: 3}}



Output


'Four score and'



Example 2:

Input


{{ 'This is fifteen' | truncatewords: 2}}



Output


'This is'