Help for this page

Select Code to Download


  1. or download this
    if (defined $total {$id}) {
        $total {$id} += $amt;
    ...
    else {
        $total {tocredit} += $amt;
    }
    
  2. or download this
    $total {exists $total {$id} ? $id : "tocredit"} += $amt;
    
  3. or download this
    (exists $total {$id} ? $total {$id} : $total {tocredit}) += $amt;