Boolean
Boolean.isEmpty()
Description: Returns true if the boolean is false, null, or undefined. Returns false if the boolean is true.
Syntax: Boolean.isEmpty()
Returns: Boolean
Source: Custom n8n functionality
Examples:
// bool = true
bool.isEmpty() // => false// bool = false
bool.isEmpty() // => true// bool = null
bool.isEmpty() // => trueBoolean.isNotEmpty()
Description: Returns true if the boolean is true. Returns false if the boolean is false, null, or undefined. This is the inverse of isEmpty().
Syntax: Boolean.isNotEmpty()
Returns: Boolean
Source: Custom n8n functionality
Examples:
Boolean.toNumber()
Description: Converts true to 1 and false to 0
Syntax: Boolean.toNumber()
Returns: Number
Source: Custom n8n functionality
Examples:
Boolean.toString()
Description: Converts true to the string ‘true’ and false to the string ‘false’
Syntax: Boolean.toString()
Returns: String
Source: JavaScript function
Examples:
Related resources
Last updated
Was this helpful?