[thelist] if else if sanity check
spinhead
evolt at spinhead.com
Wed Sep 12 17:18:36 CDT 2001
(It's JavaScript, but I'm really looking for the overall concept)
When an if-then finds a true condition to act on, does it exit, or could it
continue checking for other true conditions? I've got an bit more or less
like this:
If type = computer Then
do the computer stuff
ElseIf
type = test Then
do the test stuff
ElseIf
total > limit Then
go somewhere totally different
End If
If type = computer AND total > than limit, and the required actions aren't
mutually exclusive, would it do both, or do the first, then exit? I've
always assumed it would just do the first, then quit checking.
spinhead
More information about the thelist
mailing list