Re: Optional "then" and "do"
- Posted by yuku <yuku at ?k?tek.com> May 15, 2008
- 1034 views
Salix wrote: > But if I tend to forget "and". The result now is > > }}} <eucode> > if apple=1 bananas=3 then peach=7 end if > </eucode> {{{ > > With optional "then" it would be > > }}} <eucode> > if apple=1 bananas=3 peach=7 end if > </eucode> {{{ > > that is much harder to track down. You can always write the "then" if you want. Especially in such one-line if. Reason of making it optional is that it reduces the mental load of remembering the correct delimiter for every if, for and while statement.