Simplifies to:my $cmd = $step_no ? $step_no : 0;
If $step_no is only false when $step_no is zero, then it can even be simplified tomy $cmd = $step_no || 0;
my $cmd = $step_no;
In reply to Re: reduce line of code
by ikegami
in thread reduce line of code
by Sun751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |