T
tobyclemson
Hi,
I've read through some of the other case statement posts but can't
find any that answer me this question.
I know that the case doesn't allow the follow through aspect of case
statements from other languages but is the following valid:
case type
when 1
# do stuff for type 1
when 1,2
# do stuff for both type 1 and 2
end
If it isn't valid, what is the easiest way to obtain this
functionality
Thanks,
Toby
I've read through some of the other case statement posts but can't
find any that answer me this question.
I know that the case doesn't allow the follow through aspect of case
statements from other languages but is the following valid:
case type
when 1
# do stuff for type 1
when 1,2
# do stuff for both type 1 and 2
end
If it isn't valid, what is the easiest way to obtain this
functionality
Thanks,
Toby