7.3 Booleans

A boolean data can only reach two different states. You can think booleans as on/off switches, or in terms of true/false.

Both integers values and strings can be used everywhere a boolean is required. The integer number 0 and an empty string ("") are automatically converted in false, while every integer different from 0 (both positive and negative) and every non empty string are converted in true.

This manual can be downloaded from http://www.g-cows.org/.