elseif

This block is part of the value group and was last modified in core v10.4.28.

elseif v10.4.28

Conditional branching for values (if.. then.. else if.. then.. else if.. default..).

In pins 3
  • default required
    value
  • else if required
    condition
  • then required
    value
Out pins 1
  • value
    value

Multi-way VALUE selector, not a flow gate: the engine pre-evaluates the elseif conditions in order and this block outputs the input wired to the winning then pin, or default when none match. It does not route execution. Outputs an empty string when no pin was pre-chosen.

A typical wiring for elseif: value feeds the default pin; >= feeds the elseif pin; the value out pin feeds convert to uppercase.

Studio canvas example for the elseif block: typical wiring for elseif.

Commonly used with

In production blueprints, this block is most often wired together with:

  • value: feeds into this block. Simply returns the provided value.
  • >=: feeds into this block. returns true if the number is higher or equal.
  • AND: feeds into this block. operator for a set of boolean operands will be true if and only if all the operands are true.
  • return: this block feeds into it. Returns the added custom pins as data-pins on the function execute.

Version history

Introduced in v10.4.28.


Back to value Return to the main group to view all sub-groups Back to conditions Return to the group to view all blocks within this group