View Single Post
Old 04-13-2021, 01:53 PM   #38
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,463
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
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.
chaley is offline   Reply With Quote