if ($step_no) { my $cmd = $step_no; } else { my $cmd = 0; } [download]
In reply to reduce line of code by Sun751