Fork

[flow/Fork]


Forwards input data to one of two outputs, depending on the condition. Example:

  1. false@0 received via condition

  2. "A"@0 received via data

  3. "A"@0 sent via on false

More: https://github.com/Cranq-io/cranq-tutorials/blob/main/reference/1_application_flow/1_1_junctions/README.md#example---using-forks


Keywords: if, conditional, ternary, route, routing

Input ports

  • data: any

    Receives the data to be forwarded to either output.

  • condition: boolean

    Receives the evaluation of some condition.

Output ports

  • on true: any

    Sends signal received via data when condition was true.

  • on false: any

    Sends signal received via data when condition was false.

Last updated