# New Ticket Created by  Colin Kuskie 
# Please include the string:  [perl #44555]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=44555 >


The 51_if_unless.pir tutorial didn't have any POD.  I added POD and a 
discussion about truth.                   
Index: examples/tutorial/51_if_unless.pir
===================================================================
--- examples/tutorial/51_if_unless.pir  (revision 20601)
+++ examples/tutorial/51_if_unless.pir  (working copy)
@@ -1,3 +1,29 @@
+=head1 if and unless
+
+Both the if and unless conditionals are supported in PIR.  When the
+tested condition matches the sense of the conditional (true for if,
+false for unless), then the following statement is executed.  Truth
+is fairly simple to determine.
+
+=item Integers
+
+0 is false, any other number is true.
+
+=item Strings
+
+The empty string is false, all other strings are true.
+
+=item Numbers
+
+0.0 is false, all other numbers are true.
+
+=item PMCs
+
+The "truthiness" of a PMC depends on the type of PMC, and the way it 
implements its
+vtable method C<get_boolean>.
+
+=cut
+
 .sub main :main
 
     say "before if"

Reply via email to