Skip to main content

Creating a subzap - I want to be able to make an input parameter optional and use a default value when one is not explicitly specified, but without using a path. In this particular case, I know the value will not contain a space.

My first thought was to use “Split Text” -- appending the default value to the possibly empty parameter, split the string on :space:], and use the first word.

However when testing, the missing parameter is shown as “missing sample data” and Split Text returns “missing”. Not so useful.

Is there any way to do this in one step?

Tom

 

 

 

Hi @bridgman 

Good question.

Perhaps try this Zap action: Formatter > Text > Default Value


Thank you! I will take a look.