arrow_back Back to Notebook
lua
lua
February 18, 2019

IF/ELSE syntax in LUA

If/ If Else is an integral function in any program or script. This is the syntax for such statement in LUA.

LUA IF/ELSE example

if (true) then
    -- stuff
elseif(false) then
    -- other stuff
else
    -- null
end

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch