Boolean

From OpenKore Wiki
Jump to: navigation, 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}) { ...