コンテンツにスキップ

Affirm

このコンテンツはまだ日本語訳がありません。

Evaluates the ‘truthiness’ of an input value, returning true or false.

PortDescription
The value to be evaluated.
PortDescription
The boolean result.

The node converts different data types to a boolean based on the following ‘truthiness’ rules:

Data TypeExample ValueBoolean Result
[1, 2, 3]true
"hello"true
42true
truetrue
[]false
""false
0false
falsefalse

Any null or otherwise empty input is considered false.

ID: core/affirm@v1