Conditional contexts in Lua (if, elseif, while, until) do not require a boolean. Like many languages, any Lua value can appear in a condition. The rules for evaluation are simple:
false and nil count as false.
Everything else counts as true.
if 1 then
print("Numbers work.")
...