This project is read-only.

Bool

A boolean stores a logical value, either true or false. You can use the keywords:

var ok = true
var not_ok = false 

Operations

Booleans can be subject to:
  • Conjunction: && operator
  • Disjunction: || operator
  • Negation: ! operator

Methods

  • int to_i: converts to int (true = 1, false = 0)
  • float to_f: converts to float (true = 1.0, false = 0.0)
  • string to_s: converts to string (true = "true", false = "false")

Last edited Mar 17, 2011 at 11:04 AM by impworks, version 3

Comments

No comments yet.