Hi! Two things to solve this:
1. The decimal uses dots, not commas. So it should be <= 0.02
2. Since the new JavaScript engine is implemented you have to use more strict coding:
if ( Math.floor( ctrl ) <= 0.02 ) {100} else {0};
Another solution is to change back to the Legacy ExtendScript in the project settings and it will work without the curly brackets.
Best wishes
Markus