You need a second set of brackets:
if(!(a>0)){}
Or, better yet “not greater than” is the same as saying “less than or equal to”:
if(a<=0){}
You need a second set of brackets:
if(!(a>0)){}
Or, better yet “not greater than” is the same as saying “less than or equal to”:
if(a<=0){}