Help for this page

Select Code to Download


  1. or download this
    ok( $var1 eq 'foo' || $var1 eq 'bar', 'either foo or bar');
    
  2. or download this
    is( $var1 eq 'foo' ? 1 : $var1 eq 'bar'? 1 : undef, 1, 'either foo or 
    +bar');