Well they way I use it is something like this: (snip of WIP)
if(%start!$="")
{
%middle=%middle SPC %note;
%q++;
Playabc2(%string,%tempo,%q,%octive);
}
else if(%note$="Af")
{
%note="Ds";
%q++;
playabc("Piano_"@%octive@%note);
$play=schedule(%tempo,0,playabc2,%string,%tempo,%q,%octive);
$Note++;
}
else if(%note$="Gf")
{
%note="Fs";
%q++;
playabc("Piano_"@%octive@%note);
$play=schedule(%tempo,0,playabc2,%string,%tempo,%q,%octive);
$Note++;
}
blah
This will check if there is a %start, with the first regular if statement, if there isn't a %start if will go on to check what the note is, but if there is a %start, then there's no need to check what the note is.