构建工作流
Boolean
Boolean.isEmpty()
Description: Returns false for all booleans. Returns true for null.
Syntax: Boolean.isEmpty()
Returns: Boolean
Source: Custom n8n functionality
Examples:
// bool = true
bool.isEmpty() // => false// bool = false
bool.isEmpty() // => false// bool = null
bool.isEmpty() // => trueBoolean.toNumber()
Description: Converts true to 1 and false to 0
Syntax: Boolean.toNumber()
Returns: Number
Source: Custom n8n functionality
Examples:
true.toNumber() //=> 1false.toNumber() //=> 0Boolean.toString()
Description: Converts true to the string ‘true’ and false to the string ‘false’
Syntax: Boolean.toString()
Returns: String
Source: JavaScript function
Examples:
// bool = true
bool.toString() //=> 'true'// bool = false
bool.toString() //=> 'false'官方原文和授权
本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。