Difference between revisions of "Boolean"

From OpenKore Wiki
Jump to: navigation, search
(Redirected page to References#boolean flag)
 
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 15:16, 6 July 2019