I guys I was wounder I saw a keyword named "then" in ruby but I was curious of his use....so if someone can explain me what is this use I would apreciate 🙂
thanks~
all regards
Nio Kasgami
thanks~
all regards
Nio Kasgami
Otherwise the Z will not be part of the case statement, If you wanted to include the Z in the case, it has to be:
Also note that you do not use "end" with "then".
current_rpgmaker = case year when 1997..1999 then '95' when 2000..2001 then '2000' when 2002..2003 then '2003' when 2004..2006 then 'XP' when 2007..2010 then 'VX' when 2011..2015 then 'VX Ace' else 'unknown' end
foo = bar if baz
well this was more for know is use sincerelly haha because I am always curious on that!
Original thread: https://forums.rpgmakerweb.com/threads/the-explaination-of-the-keyword-then.37703/