View on GitHub

JODA - JSON On Demand Analysis

Efficient data wrangling for semi-structured JSON documents

FALSY - Type

Checks whether the given value is falsy.

Details

The falsy definition of MDN has been used.

Input parameters

Name Type Optional Description
x Any False  

Output

Bool: true, if value is falsy, false else

Usage

FALSY(<x>)

Examples

Example 1

Query

LOAD tmp
AS ('': FALSY(false))

Result

true

Example 2

Query

LOAD tmp
AS ('': FALSY(0))

Result

true

Example 3

Query

LOAD tmp
AS ('': FALSY(1))

Result

false

Example 4

Query

LOAD tmp
AS ('': FALSY(""))

Result

true

Example 5

Query

LOAD tmp
AS ('': FALSY("A"))

Result

false

Example 6

Query

LOAD tmp
AS ('': FALSY(null))

Result

true