September 30th, 2010, 07:09 PM
Hello everyone! + tiny question with case statement
I join this community in the spirit that hopefully I can help (at least where I can) and learn. I feel a bit like a noob not knowing the actual formalities when joining a forum such as this but basically I started learning ruby this semester and I have found it strangely addictive.
Oh, with the tiny question...
I have a script that is basically as such:
#used to readjust dates when months are days are added to it
valid = false
until var == true
var = true
The point I am really trying to get across is:
when the 'when' is satisfied, does it go to the next 'when' then 'else'
If it is appropriate I can post the code... it isn't excessive in length.
Any thoughts or input would be appreciated.
 Apologies all, just my logic playing tricks on me
Last edited by andrewbriscoe87; September 30th, 2010 at 07:45 PM.
Reason: solved the tiny question
October 16th, 2010, 03:49 AM
This should clear things up:
x = "cat"
when x == "cat" then "meow"
when y == "zebra" then "stripes"