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
| Data | Description |
|---|---|
| Selector | The boolean input to check. |
| String for true | The text to output if Selector is true. |
| String for false | The text to output if Selector is false. |
Outputs
Value
| Data | Description |
|---|---|
| Current Value | The resulting string. |
Signals
| Signal | Description |
|---|---|
| Selector Changed | Triggered when the boolean input changes. |
Usage
UI Labels
- Selector:
isLoggedIn(Boolean). - String for true: "Log Out".
- String for false: "Log In".
- Connect Current Value to a Button Label.
Status Text
- Selector:
isActive. - True: "Online".
- 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.