&& || !
Boolean logic. Emits Luau and / or / not.
Syntax
Section titled “Syntax”a && b || !cParameters
Section titled “Parameters”None.
Return value
Section titled “Return value”bool (Luau truthiness).
Luau emit
Section titled “Luau emit”and or not
Description
Section titled “Description”There is no ternary ? :. Use if / else. Short-circuit matches Luau.
Example
Section titled “Example”if (player != null && player.Parent) { post(player.Name);}Emits:
if player ~= nil and player.Parent then print(player.Name)end