I can't get it to work (CSound 5.06):
if ic2 == 1 igoto GT
if ic2 == 2 igoto H1
compiles and runs but H1 is never reached, indifferent of the value of ic2 (which is 2 as a prints shows). And I do not find a working example in the manual for "if..then" code, everything I try fails to compile.
And while I'm at it: are there any plans to update the language to allow for:
- writing statements across several lines without having to use "\"
- allowing for a construct like
if ic2 == 1 then
ax = a1
else if ic2 == 2 then
ax = a1 + a2
else if ic2 == 3 then
ax = a1 + a2 + a3
which is what I want to accomplish.
Sorry for sounding harsh, but goto's are really outdated, bad programming style and a pain when you're used to modern languages like Java, C# or the like.
Thanks in advance,