Logical assignment operators

As a developer, it’s hard to write logical variable overrides more easily. This is especially useful for setting default function parameters.

local parameter = parameter or 1
--- becomes
local parameter or= 1

I also want this for and.

8 Likes