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:

  1. "foo" is set or received on data

  2. "bar" is set on default

  3. null@1 received via read

  4. "foo"@1 sent via data (output)

Example B:

  1. no value is set on data

  2. "bar" is set on default

  3. null@1 received via read

  4. "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