From: Dan Debertin Date: 2002-09-05T09:56:55+09:00 Subject: Re-evaluating a 'case' I was reminded of this problem by the recent 'breaking out of case' thread. I have a 'case' statement that evaluates a condition: case cond when 'thing1' ...do thing1 stuff... when 'thing2' ...do thing2 stuff... cond = 'thing1' end The 'thing2' clause changes the value of 'cond', so I want to be able to bounce back to the top and re-evaluate the case. The way I ended up doing it was: begin case cond when 'thing1' ...do thing1 stuff... when 'thing2' ...do thing2 stuff... cond = 'thing1' raise end rescue retry end Raising an exception on a non-error condition seems sort of hackish, and I'm also worried that doing this a lot could have performance impacts. Thoughts on other ways to do this? Dan -- /^Dan Debertin$/ airboss@nodewarrior.org | Did I sleep a little too late, www.nodewarrior.org | or am I awake? --Byrne