Checking if variable = a or b then

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
rookieluascripter246
Prole
Posts: 3
Joined: Sat Jan 05, 2019 9:15 am

Checking if variable = a or b then

Post by rookieluascripter246 » Thu Mar 14, 2019 5:46 am

Is there a way to check if a variable equals a or b?

User avatar
ingsoc451
Citizen
Posts: 71
Joined: Sat Feb 06, 2016 9:42 pm
Location: Oceania

Re: Checking if variable = a or b then

Post by ingsoc451 » Thu Mar 14, 2019 6:08 am

if variable == a or variable == b then ... end
eom

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests