From: Wang Dong Date: 2007-01-23T13:55:06+09:00 Subject: Re: If-Then and "End" "Sam C." ������������:dde09efd974a47ac491498b540e43ed1@ruby-forum.com... >I am making a program with various commands. One of them is "Exit" which > is supposed to exit the program. Here is my code: > > if uinput = "EXIT" then > end > end > > The problem is that the ruby compiler thinks that the first "end" is the > end to the If-Then statement, instead of the "end" that ends the > program. How do I work around this? > > -- > Posted via http://www.ruby-forum.com/. > It's not the Pascal��program end with an 'End.', just use exit.