Conditionals

Conditional statements perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.

Example
local n = 5 if n == 1 then -- This will not be run elseif n == 2 then -- This will not be run elseif n == 5 then -- This will be run else -- This will not be run end