boolean

From OpenKore Wiki
Revision as of 10:21, 17 September 2012 by EternalHarvest (talk | contribs)
Jump to navigation Jump to search

Overview

Empty string (unset option) or 0 means FALSE.

1 means TRUE.

Details

Option values are interpreted with Perl's Truth and Falsehood rules.

Boolean options MAY be extended in future. In such a case, values of 0 and 1 SHOULD preserve the old behaviour, and more values MAY be added.

API

There is no API per se, just use usual Perl's logic operators.

Examples

if ($config{useDeadlyRay}) { ...