unary operator in conditional flow

It seems like even unary operator needs two operands in conditional flows. So following would be wrong statements; Is that right?

(Not javascriptvariable)

(!javascriptvariable)

I am getting error when I save these conditions saying " Invalid condition, Reason: Both the operands for NOT expression should be logical."

Hello @Mayank ,

Yes, we need to use the following:

<Condition>(javascriptvariable != "true")</Condition>

ok great, that should take care of both conditions where variable has null value and empty string both .

Apigee documentation lists both operators ! and != separately so its little confusing for users. Thanks for repsonse.