Compound OR-statement fail JSC Javascript compile
Brought to you by:
zproxy
Version: 20090406_jsc
Issue:
The following OR-statement fails JSC Javascript compile
if ((theblank > 0) && ((theblank<endbracket)||(endbracket<0))&&((theblank<theequal)||(theequal<0)))
return -1;
Another OR statement that fails:
if((s == null) || (s.Length <= 0) || (token == null) || (token.Length <= 0))
return -1;
Various combinations and moving brackets around did not make a difference.
Also using a bool variable instead of if-statement also didn't help.
bool v = ((theblank > 0) && ((theblank<endbracket)||(endbracket<0))&&((theblank<theequal)||(theequal<0)))
if(v)
return -1;
Error List:
Error 24 logic failure
Output:
script : error JSC1000:
*** Compler cannot continue... press enter to quit.