Hi Istvan, Thanks for that explanation. That is incredibly strange behavior, but at least the workaround is perfectly simple. Thanks! steven On 8/4/05, Istvan Varga wrote: > Steven Yi wrote: > > > And in the example, if you change the last elseif statement to an > > else, the UDO will always return -1. > > > > Any chance to take a look would be appreciated! > > The else branch is always executed at i-time, as a result of a fix by > Matt Ingalls that attempted to work around the problem of the else branch > sometimes not being called at i-time. For i-time only code, you can use > 'ithen' instead of 'then': this will do what you expect at init time, > however, it will always execute the "else" branch at performance time > and never any of the "if" or "elseif" branches. > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net