Parameter with default
Last updated
Last updated
[flow/Parameter with default]
Stores a parameter and sends it out on receiving a signal to read
.
Sends the default value when data
is not set.
Example A:
"foo" is set or received on data
"bar" is set on default
null@1 received via read
"foo"@1 sent via data
(output)
Example B:
no value is set on data
"bar" is set on default
null@1 received via read
"bar" is sent via data
(output)
Keywords: fallback, default, parameter, constant, value, store, variable
data: any
Sets the parameter value.
default: any
Sets the default value for the parameter. Works as static parameter only.
read: any
Receives signal that triggers sending out the stored parameter value or the default in case the prior is not set.
data: any
Sends the stored parameter data or the default in case the prior is not set.