slice


Returns a subset of the string parameter based on offset and length.


Syntax


{{ <Parameter> | slice: <Offset>, <Length> }}



Arguments

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


Offset - An integer value representing the starting place for the slice. If Offset is negative, slice starts that far back from the end of the string.


Length - An integer value representing the total number of characters to include within the slice


Example 1:

InputParameter Value


'Four score and seven years ago'



Input


{{ InputParameter | slice: 5, 15}}



Output


'score and seven'



Example 2:

Input


{{ 'This is fifteen' | slice: -7, 7}}



Output


'fifteen'