#-*-cperl-*- =head1 Boolean PMC Implementation of a generic boolean value. =head2 Creation To create a PMC boolean use new P0, .Boolean And P0 will contain a false boolean object. =head2 Setting/Getting values To set values, use the C operator. To set the boolean element to true, use set P0, 1 Note that you can set any value. The value, integer, number or string will be evaluated in it's trueness as in Perl. Integers or numbers different from zero are true. Strings are true unless empty or with the zero character. To get the value from the object use set I0, P0 While you can use other register types, you shouldn't. =head2 Logic operators As with other data-types, you can use C, C, C and C operators xor P0, P1, P2 # P0 = P1 xor P2 and P0, P1, P2 # P0 = P1 and P2 or P0, P1, P2 # P0 = P1 or P2 not P0, P1 # P0 = not P1 =cut