We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Smart use of the 'or' operator instead of nil checks increases readability.
if name then return name else return "John Doe" end
return name or "John Doe"
Just use ternary operators to evaluate the expression
if name == "mark" or name == "stacy" return true else return false end
return name == "mark" or name == "stacy" -- Will return true if name is either mark or stacy