Skip to content

== != < > <= >=

Operator

!= is the one that changes: it emits Luau ~=. The others stay the same.

a == b
a != b
a < b

None.

bool.

== ~= < > <= >=

There is no ===. null compares with == / !=.

if (currentValue.Value != newValue) {
currentValue.Value = newValue;
}

Emits:

if currentValue.Value ~= newValue then
currentValue.Value = newValue
end

operator-logic · null · if