Re: New switch/case idea
- Posted by jimcbrown (admin) Apr 06, 2009
- 1670 views
irv said...
case RHS_SUBS then case RHS_SUBS_CHECK then case RHS_SUBS_I then opRHS_SUBS() break
case RHS_SUBS or RHS_SUBS_CHECK or RHS_SUBS_I then opRHS_SUBS() break
So, the two above are identical?
Yes, they are.
Here is another (this time hypothetical) example:
case RHS_SUBS_CHECK then SUBS_CHECK() case RHS_SUBS_I then i = get_SUBS_I() case RHS_SUBS then opRHS_SUBS() break