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=


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

Revision as of 01:54, 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: !