GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Processing
  • Download
  • Reference
  • Environment
  • Libraries
  • Tools
  • Wiki
  • Tutorials
  • Examples
  • Books
  • Forum
  • Overview
  • People
  • Privacy

This view

  • Original page
  • New address

GeezerVison is showing processing.org — boolean / Reference

Reference+
Documentation→Reference→Data→Primitive

Name

boolean

Description

Datatype for the Boolean values true and false. It is common to use boolean values with control statements to determine the flow of a program. The first time a variable is written, it must be declared with a statement expressing its datatype.

Examples

  • 
    size(400,400);
    boolean a = false; 
    if (!a) { 
      rect(120, 80, 200, 200); 
    } 
    a = true; 
    if (a) { 
      line(80, 40, 360, 320); 
      line(80, 320, 360, 40); 
    } 
    

Syntax

  • boolean var
  • boolean var = booleanvalue

Parameters

  • varvariable name referencing the value
  • booleanvaluetrue or false

Related

  • true
  • false
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.