Affirm
このコンテンツはまだ日本語訳がありません。
Evaluates the ‘truthiness’ of an input value, returning true or false.
Inputs
Section titled “Inputs”| Port | Description |
|---|---|
| The value to be evaluated. |
Outputs
Section titled “Outputs”| Port | Description |
|---|---|
| The boolean result. |
Addendum
Section titled “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