Less than < throws up error?

Greetings,

I have this line that is tossing up an error.

   :if ($http!<=99) do={
syntax error (line 16 column 24)

The indicator is that the < is a problem. If I change it to >, the code works correctly, but not as I want, I need “not less than”…

ROS 6.33.5 on a CRS109

Regards
Brian

What’s with the “!” in there? What are you trying to say? “Not less than or equal”? Or does the variable actually have “!” as part of its name?

If you want “Not less than or equal”, you could either use just “greater than”, i.e.

:if ($http>99) do={

or you could surround the thing with a not, so f.e.

:if (!($http<=99)) do={

or if the “!” is part of the variable name, surround the name with quotes, i.e.

:if ($"http!"<=99) do={

or if the variable name is “http”, and you just want what is less than or equal, use

:if ($http<=99) do={

(notice the missing “!”)