This:

if(cmp(a,">",10) ....

could be

if (cmp(a ">" 10) ....

because commas are optional. BTW, I am considering the suggestion to make ">" a reserved word to avoid need for quotes.