Gentee
  • Gentee script programming language
  • Language Reference
    • Lexical elements
    • Types
    • Declarations
    • Statements
    • Error handling
    • Expressions
    • Running programs
    • Multithreading
    • Include and import
  • Standard Library Reference
    • Archiving
    • Array
    • Boolean
    • Buffer
    • Characters
    • Console
    • Constants
    • Context
    • Cryptography
    • Encoding
    • Files
    • Float numbers
    • Integer
    • Map
    • Multithreading
    • Network
    • Object
    • Path
    • Process
    • Regular expressions
    • Runtime
    • Sets
    • Strings
    • System
    • Time
  • Go Integration
    • Reference
    • Compilation and execution
    • Advanced features
    • Playground
  • Change language
    • Русский
Powered by GitBook
On this page
  • Operators
  • Functions
  • int(bool b) int
  • str(bool b) str

Was this helpful?

  1. Standard Library Reference

Boolean

PreviousArrayNextBuffer

Last updated 5 years ago

Was this helpful?

Operators and functions for working with boolean (bool type) are described here.

Operators

Operator

Result

Description

bool && bool

bool

Logical AND operator. If both the operands are true then condition becomes true.

bool || bool

bool

Logical OR Operator. If any of the two operands is true then condition becomes true.

! bool

bool

Logical NOT Operator.

bool = bool

bool

Assignment operator.

Functions

int(bool b) int

The int function returns 1 if the parameter is true and returns 0 otherwise.

str(bool b) str

The str function returns the "true" if the parameter is true and returns the "false" otherwise.

int( bool b ) int
str( bool b ) str