Literals
Predefined constant values — booleans, null, and special numbers.
Last updated
Was this helpful?
Predefined constant values — booleans, null, and special numbers.
Literals are predefined constant values that represent common data states and special values. They offer a concise way to express boolean values, null states, and special numeric values without quotes or extra syntax.
Internet Object supports the following literals:
true
Boolean
True value
Yes
T
Boolean
True value (short form)
Yes
false
Boolean
False value
Yes
F
Boolean
False value (short form)
Yes
null
Null
Null / empty value
Yes
N
Null
Null / empty value (short form)
Yes
Inf
Number
Positive infinity
Yes
-Inf
Number
Negative infinity
Yes
NaN
Number
Not a Number
Yes
# Boolean literals
~ isActive: true, verified: F, isDeleted: false, visible: T
# Null literals
~ middleName: null, nickname: N
# Special numeric literals
~ maxValue: Inf, minValue: -Inf, result: NaNCase sensitive — literals must use exact case; True, FALSE, and NULL are invalid.
No quotes — literals are written without quotes; quoting one makes it an ordinary string.
Short forms — T, F, and N are single-letter shortcuts for true, false, and null.
Booleans — the boolean type in detail
Nulls — null and optional values
NaN and Infinity — special numeric values
Last updated
Was this helpful?
Was this helpful?
