Go Booleans: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 13: Line 13:
=Boolean Operators and Functions=
=Boolean Operators and Functions=


* and: <tt>&&</tt>
* and <tt>&&</tt>
* or: <tt>||</tt>
* or <tt>||</tt>
* not: <tt>!</tt>
* not <tt>!</tt>

Revision as of 01:55, 23 March 2016

Internal

Overview

Booleans are designated by pre-declared type identifier bool.

Boolean Literals

The boolean literals are pre-declared constants true and false.

Boolean Operators and Functions

  • and &&
  • or ||
  • not !