|
Re: Paramaterizing Case Statements
Quote:
Originally Posted by airnate
Yes. And no. (there, that was simple, right?)
...
If you are asking if you can actually evaluate expressions as part of the case statement itself, then the answer is no. All of the case expression needs to be evaluated up front prior to the actual case statement.
...
|
That was what i wanted to know. Thanks. i'll deal with it by doing the logic outside the case structures and giving the results as booleans.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams
5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)
We have blades on our robot?! ***sweeeeeet***
There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
|