I do not have AM yet, but I am a programmer. (no I don't play one on tv)
Your code:
if (Chortime() >.5 and Chortime()<1,Chortime()*1000{,0})
Looks to me like it should be:
if (Chortime() >.5 && Chortime()<1,Chortime()*1000{,0})
or
if (Chortime() >.5 And Chortime()<1,Chortime()*1000{,0})
Note the upper case A.
And a tip on getting a responce to code snippits.
Always include the syntax error message.
Just trying to help.
Jack