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 »

Is there a way to check if a variable equals a or b?
monolifed
Party member
Posts: 188
Joined: Sat Feb 06, 2016 9:42 pm

Re: Checking if variable = a or b then

Post by monolifed »

if variable == a or variable == b then ... end
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 193 guests