Quote:
Originally Posted by ownedbycats
Question: If you have two if statements that are mutually exclusive:
Code:
program:
if $#enum== 'foo' then
'foo'
else $#enum == 'bar' then
'bar'
fi
does it matter what order they are in, as long as the other statements are all in the right order?
|
Functionally, no, as long as you can truly guarantee mutual exclusivity. However, there might be differences in performance. The most common ones should be first.