You may have a operator precedence problem there.....
# suitescript
a
You may have a operator precedence problem there...wrap your logic inside parenthesis...