Judy, et al:

Yes, but do you think in these terms in day-to-day life?

IF I have the paycheck in-hand THEN
  it will clear the bank in 2 days
I can write the rent check tomorrow and it will clear at the same time
END IF


I will grant you:

(a) As one who has used case statements for years, I may not appreciate the learning curve for non-programmers, and

(b) Where ifs and switches can be used interchangeably, the choice is basically one of preference.

Note the "Where" in item (b). Switches and ifs are not interchangeable in all syntax. Your full example of ifs and nested ifs is _not_ an example of syntax that lends itself to switches, and thus is not (IMFO) pertinent to this discussion.

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to