my $num = $recFono->field_as_text('102'); my $type = $recFono->field_as_text('104'); if ($num && $type) { something(); }
This has the benefits of
If you really want it on one line, you can write your own logical function:
sub myor { $_[0] or $_[1]; } if (myor( ..., ...)) { }
In reply to Re: logical non-short-circuit operators
by moritz
in thread logical non-short-circuit operators
by december
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |