Help for this page

Select Code to Download


  1. or download this
    cond ? then_expr : else_expr
    
  2. or download this
    if (cond) { then_expr } else { else_expr }
    
  3. or download this
    my $count = $row[0] ? $row[0] : 0;
    
  4. or download this
    my $count;
    if ($row[0]) {
    ...
    } else {
        $count = 0;
    }
    
  5. or download this
    my $count = $row[0] || 0;