LogoLogo
  • Internet Object 1.0
  • Internet Object
    • Abstract
    • The Poetic Principles of Internet Object
    • Objectives
    • Introducing Internet Object
  • The Structure
    • Internet Object Document
      • Header
      • Data Sections
    • Structural Elements
      • Structural Characters and Literals
      • Literals
      • Other Special Characters
      • Whitespaces
    • Values Representations
      • Objects
      • Arrays
      • Strings
        • Open Strings
        • Regular Strings
        • Raw Strings
      • Numeric Values
        • Number
        • BigInt
        • Decimal
        • Special Numeric Integer Formats
          • Hexadecimal
          • Octal
          • Binary
        • NaN and Infinity
      • Binary
      • Date and Time
      • Booleans
      • Nulls
    • Comments
    • Encoding
  • The Collections
    • Collection
    • Creating Collection
    • Collection Rules
    • Data Streaming
  • The Definitions
    • Definitions
    • Variables
    • Complex Schema
  • Schema Definition Language
    • Internet Object Schema
    • The structure
    • Data Types
      • Any
      • String
        • String Derived Types
          • Email
          • URL
          • Date
          • Time
          • DateTime
      • Number
        • Derived Types
          • int
          • byte
          • int16
          • int32
      • Object
      • Array
      • Bool
    • Dynamic Schema
    • Is Object, a MemberDef or a Schema?
  • Other
    • Best Practices
    • FAQs
    • Contributors
    • License
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. The Structure
  2. Values Representations

Booleans

Booleans in Internet Object

PreviousDate and TimeNextNulls

Last updated 8 months ago

Was this helpful?

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.

The Boolean Structure

Chars

Char Code

Detail

T

U+0054

The uppercase letter T

F

U+ 0046

The uppercase letter F

true

U+0074 U+0072 U+0075 U+0065

The keyword true

false

U+0078

The keyword false

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