== != < > <= >=
== != < > <= >=
Section titled “== != < > <= >=”!= is the one that changes: it emits Luau ~=. The others stay the same.
Syntax
Section titled “Syntax”a == ba != ba < bParameters
Section titled “Parameters”None.
Return value
Section titled “Return value”bool.
Luau emit
Section titled “Luau emit”== ~= < > <= >=
Description
Section titled “Description”There is no ===. null compares with == / !=.
Example
Section titled “Example”if (currentValue.Value != newValue) { currentValue.Value = newValue;}Emits:
if currentValue.Value ~= newValue then currentValue.Value = newValueendSee also
Section titled “See also”operator-logic · null · if