lua expressions with less than

I’m tring to get a less than “<” operator working in lua using the "Test Luup code (Lua) in Apps/Develop Apps

If I use a line like

local yy=12
local xx=yy==100

then clicking “go” says “Code sent successfully” as expected, but if I enter

local yy=12
local xx=yy<100

then clicking “go” says “Failed to test code, please try again”

Anywhere I try to use a less than sign I get the same result. I tried using < in case it needed to be html escaped bu that didnt help.

Am I doing anything obviously wrong ?

No, it’s Vera that has got things wrong. They really screwed up special character handling on some firmware releases. I had thought that it was fixed… are you not running the latest version?

An even better alternative is to install the AltUI plugin which gives you a much better interface and, in particular, a Test Lua window which actually works and also allows use of a print statement, which really help debugging. Try it, you’ll like it!

According to vera’s Settings/Firmware I’m running the latest. It say version 1.7.3231

Any idea how it’s meant to be escaped ?

Well, that’s the point. It’s NOT meant to be escaped. No excuse for that it Lua.

However, in XML device files, where Lua is embedded, you do need the XML escape.