From: Matthew Smillie Date: 2006-07-02T08:27:36+09:00 Subject: Re: Help please On Jul 1, 2006, at 23:36, Dark Ambient wrote: > On 7/1/06, Matthew Smillie wrote: > >> [1]or [2] could contain other if statements, and they'd nest just >> like >> anything else would: >> >> if a # ------ <-----------| >> if b # ---- | >> <------------|--------------------------| >> [a true, b true] # | | >> | | >> else # | | >> | | >> [a true, b false] # | | >> | | >> end # ---- | <----- >> | | >> else # >> | | >> if b # ---- | >> <--------------------------------------|---------- >> [a false, b true] # | >> | | | >> else # | >> | | | >> [a false, b false] # | >> | | | >> end # ---- | >> <------------------------------------ >> | | >> end # ------ This ends first 'if b' above >> <-------- > > Did I make the right connections ? If I did it's still confusing > (sure I'll get used to it) to have the else right after the end. From what I can see, no. The first statement started is the *last* one ended, not the first one. if a # start of 1 if b # start of 2 else # else clause of 2 end # end of 2 else # else clause of 1 if c # start of 3 else # else clause of 3 end # end of 3 end # end of 1 Just out of curiosity, what did you think the connections I drew were meant to represent? matthew smillie.