Help for this page

Select Code to Download


  1. or download this
    if ( $b and $c ) {
        $string = "$a where $b and $c";
    } elsif ( $b or $c ) {
        $string = "$a where " . ($b ? $b : $c) ;
    }
    
  2. or download this
    $x = $b ? 5 : 17;