Re: another error i can't figure
- Posted by "Carl W." <euphoria at cyreksoft.yorks.com> May 28, 2002
- 399 views
Kat wrote: > Syntax error - expected to see possibly 'end', not a function > if equal('o',newmodes[1]) then on_op(nicks[1]) > ^ If on_op() is a function (and not a procedure), you need to assign the return value to something. Euphoria isn't like some other languages and can't discard return values if there's no preceding assignment operator. It took me a while before I realised that this is probably what's going on. I was going to suggest putting an 'end' there to see what happened... :) HTH, Carl