# Boolean to string
Converts a boolean value to a configurable text label.
Boolean to string
V
T
# Inputs
| ID | Abbrev | Name | Type | Default | Description |
|---|---|---|---|---|---|
value | V | Value | BOOLEAN | false | Boolean value to convert to string. |
# Outputs
| ID | Abbrev | Name | Type | Default | Description |
|---|---|---|---|---|---|
text | T | Text | STRING | | Text label corresponding to the boolean state. |
# Configuration
| ID | Name | Type | Default | Unit | Description |
|---|---|---|---|---|---|
true_text | True text | STRING | true | Text to output when the input is true. Details: Required | |
false_text | False text | STRING | false | Text to output when the input is false. Details: Required |
# Source Code
View Volang source
value = input::get("value")
if (value) {
output::set("text", config::get("true_text"))
} else {
output::set("text", config::get("false_text"))
}
