SyntaxFix
Write A Post
Hire A Developer
Questions
One simple thing you could do is abstract the test inside a function.
local function isempty(s) return s == nil or s == '' end if isempty(foo) then foo = "default value" end