On Monday 06 February 2006 09:39, Matt J. Ingalls wrote: > it looks like there might be a bug in csound 5. the csound4 output looks > right. No, it does not. If you look more carefully, you will notice that in the Csound 4 output, the 'if' and 'elseif' branches are always executed, while the 'else' ones are never, regardless of the value of p4. Also, the report was done with an old version of Csound 4. With the latest 4.23 sources from CVS, its output is exactly identical to that of version 5. In fact, the current if/then/else code in Csound 5 is synchronized with your most recent changes to 4.23, and it is since then that the 'else' branch is always executed at i-time. 'ithen' was also added by you, apparently to work around this limitation. > if i remember right, p-variables are treated as k-rate variables in > conditionals. No, they are i-rate conditionals. If you compile with -v, you should notice that the temporary boolean variables are of type 'b' and not 'B' (but maybe not in older versions).