Skip to content

Logic Case

Henry de Jongh edited this page Mar 11, 2023 · 5 revisions
Description Icon
A reactive logic component that matches the input parameter to a list of cases and invokes the associated output.

Parameters

Name Description
Cases The list of cases each with Value to be matched and the Name of the output.
The Name will be invoked as Case[Name] when the input parameter matches the Value.

Inputs

Name Description Parameter
Invoke Invokes a case output matching the string parameter. parameter (string) The parameter value to match against the case values.
Random Invokes a random case output (even with no configured cases this never invokes Default). parameter (string) The parameter to be passed to the output.
RandomExclusive Invokes a random case output excluding the last random case output (even with no configured cases this never invokes Default). This prevents the same case from getting invoked twice in a row (unless there is only one configured case). parameter (string) The parameter to be passed to the output.
RandomShuffle Invokes a random case output as a shuffled deck of cards, so that each case must occur in random order before it resets and shuffles another deck of cards (even with no configured cases this never invokes Default). parameter (string) The parameter to be passed to the output.

Outputs

Name Description Parameter
Case[Name] Invoked when the input parameter matched a certain case. parameter (string) The parameter that was passed to the input.
Default Invoked when no case output matched the input parameter. parameter (string) The parameter that was passed to the input.

Remarks

The parameter matching is done as a string, so if you specify one of the cases to be 1.50, it won't match a float 1.5 because that is not literally the string 1.50.

Clone this wiki locally