Check if two bytes are equal


#1

How do you check the equality of two bytes on UDF?


#2

This is standard Lua for comparing bytes, have you tried this?

local function compareByte(a, b)
    if string.byte(a) == string.byte(b) then
        return true
    else
        return false
    end
end