Affirm
Evaluates the 'truthiness' of an input value, returning true or false.
Inputs#
| Port | Description |
|---|---|
| The value to be evaluated. |
Outputs#
| Port | Description |
|---|---|
| The boolean result. |
Addendum#
The node converts different data types to a boolean based on the following 'truthiness' rules:
| Data Type | Example Value | Boolean Result |
|---|---|---|
[1, 2, 3] |
true |
|
"hello" |
true |
|
42 |
true |
|
true |
true |
|
[] |
false |
|
"" |
false |
|
0 |
false |
|
false |
false |
Any null or otherwise empty input is considered false.
ID: core/affirm@v1