Parameter with default
[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
Input ports
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.
Output ports
data:
any
Sends the stored parameter data or the default in case the prior is not set.
Last updated