Truthiness
Some statements and functions in Easel expect a "truthy" or "falsy" value.
For example, an if
statement will execute its block only if the condition is "truthy".
In Easel, the following values are considered "falsy":
false
0
NaN
undefined
null
0b0
All other values are considered "truthy".
let a = undefined
if a {
Transmission { "a is truthy" }
} else {
Transmission { "a is falsy" }
}
// Will output: "a is falsy"