Re: [gforth] If then else in interpreted mode

2013-05-02 Thread John Allsup
Thanks, I'm quite new to Forth itself, so haven't learned the various simplifying shortcut words. Also, I may tend not to use them when illustrating an idea to ask others about it. This was motivated by my reading the gforth manual 3.16 'In Forth you can use control structures only inside

Re: [gforth] If then else in interpreted mode

2013-05-01 Thread Josh Grams
On 2013-05-02 12:57AM, Marcos Cruz wrote: On 2013-05-01 23:15, John Allsup wrote : : jif 0 = if 0 else 1 then ; A simpler alternative: : jyf 0 abs ; Yikes! How about: : jif 0 1 and ; Usually in Forth a calculation can be used instead of a condition. Well, that's true in