Booleans

Booleans in Internet Object

Boolean values are represented using T and F. true and false. The true values can be represented using T or true keywords. The false values can be represented using F or false keywords.

It is recommended that the keywords T and F keywords are preferred while denoting true and false values respectively.

In the following example, isActive is of boolean type and will accept only boolean values i.e T, F, true , false.

name: string, age: number, isActive: bool
---
~ John Doe, 30, T
~ Jane Doe, 25, F,
~ Peter Peterson, 28, false
~ Jack Jackson, 30, true

Last updated