Home
Wiki
Forums
Issue tracker
Search
Advanced search
Board index
Search
Search
Quick links
Unanswered topics
Active topics
Search
Members
The team
FAQ
Login
Register
Search found 1 match
Go to advanced search
Search
Advanced search
Search found 1 match • Page
1
of
1
by
NishiyamaPedro
Thu Sep 08, 2022 11:35 pm
Forum:
Support and Development
Topic:
"Unexpected Symbol near if" error
Replies:
4
Views:
3778
Re: "Unexpected Symbol near if" error
You can do it like this.
Code:
Select all
local foo = true and "bar" or "hello world"
There are other ways to get the same result, if you are interested you can read here
http://lua-users.org/wiki/TernaryOperator
Jump to post
Display:
All results
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by:
Author
Post time
Forum
Topic title
Post subject
Direction:
Ascending
Descending
Search found 1 match • Page
1
of
1
Go to advanced search
Jump to
General
Support and Development
Games and Creations
Libraries and Tools
Community
↳ Ports
↳ nLÖVE
↳ LÖVE-Android
↳ Archives
↳ A Whiff of Steam