Breadcrumbs

StringSwitch

Description

The StringSwitch component is a StringPoint that switches between two strings based on a Boolean value.


Implementation

StringSwitch.JPG

  • Drag and drop the component into the station

  • Link a Boolean to the inSwitch input

  • Link facet slots to the two inputs inTrue and inFalse or enter them directly


Properties

  • Out: the output string. If inSwitch is true, it takes the value of inTrue, otherwise it takes the value of inFalse

  • InSwitch: toggles between the two strings. If the state of this property is invalid or null, then the null state will be added to the output out

  • InTrue: the string if the inSwitch property is true

  • InFalse: the string if the inSwitch property is false