boolean: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
No edit summary
m (Conversion script moved page Boolean to boolean: Converting page titles to lowercase)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
== Overview ==
#REDIRECT [[References#boolean_flag]]
 
Empty string (unset option) or '''0''' means FALSE.
 
'''1''' means TRUE.
 
== Details ==
 
Option values are interpreted with [http://perldoc.perl.org/perlsyn.html#Truth-and-Falsehood 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}) { ...
 
[[Category:Reference]]
__NOTOC__

Latest revision as of 22:34, 26 April 2021