Skip to main content

Boolean To String

This node converts a boolean value into one of two text strings.

The Boolean To String node maps true and false to custom string values.

The Boolean To String node is a simple mapper. It takes a boolean input ("Selector"). If true, it outputs the "String for true". If false, it outputs the "String for false".

Inputs

General

DataDescription
SelectorThe boolean input to check.
String for trueThe text to output if Selector is true.
String for falseThe text to output if Selector is false.

Outputs

Value

DataDescription
Current ValueThe resulting string.

Signals

SignalDescription
Selector ChangedTriggered when the boolean input changes.

Usage

UI Labels

  1. Selector: isLoggedIn (Boolean).
  2. String for true: "Log Out".
  3. String for false: "Log In".
  4. Connect Current Value to a Button Label.

Status Text

  1. Selector: isActive.
  2. True: "Online".
  3. False: "Offline".

Detailed Behavior

  • Reactive: Updates immediately when any input changes.

Troubleshooting

  • Empty Output: Ensure you have set values for both True and False strings.