I want to build the if statement and at the time of execution, have something like$min = some number if defined $max = some number if defined $Files = some number $IdleTime = some number if (defined($max)) { $if = "($Files >= $max)"; } if (defined($min)) { if ($if) { $if .= " || ($IdleTime >= $min)"; } else { $if .= "($IdleTime >= $min)"; } }
I know this can be done ('cause I did it some years ago & I've grown old & senile)if ({$if}) { print "hi"; } else { print "hello"; }
...any help would be greatly appreciated...thanx...
In reply to a not so complex if statment by rhxk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |