default
Returns the provided value. If the parameter value is empty or not provided, then it will return the given default value.
Syntax
{{ <Parameter> | default: <String Value> }} |
Arguments
Parameter - A string literal or name of the input parameter to use
String Value - The string that the contains the default value to use if the parameter is either empty or not provided.
Example 1:
InputParameter Value |
Input |
{{ InputParameter | default: 'This is a default value'}} |
Output |
'This is a default value' |
Example 2:
InputParameter Value |
'This is a custom value' |
Input |
{{ InputParameter | default: 'This is a default value'}} |
Output |
'This is a custom value' |