Help for this page

Select Code to Download


  1. or download this
    ifthenelse: if elsif(s?) else(?) endif
    
  2. or download this
    use Parse::RecDescent;
    use Data::Dumper;
    ...
    if 1 then 2 endif
    if 1 then 2 elsif 3 then 4 elsif 5 then 6 endif
    if 1 then 2 elsif 3 then 4 else 5 endif
    
  3. or download this
    [ "if", [ cond1, result1 ],   # first "if" condition/result expression
    + pair
            [ cond2, result2 ],   # 0 or more "elsif" expression pairs
            ...
            otherwise ]           # else branch expression, or undef if no
    +ne