I have this if statement and when I run it it reeturns an error : " ')' expected "
if (a=1 and b=4 and c=width/2) or (a=2 and b=1 and c=width/2) then
...
end
Am I doing something wrong here? or is it something wrong with lua?
Try to replace your current code with this:
if (a==1 and b==4 and c==width/2) or (a==2 and b==1 and c==width/2) then
...
end
= means assignment, whereas == checks for equality and it looks like you want to check for equality.
=need to be==.=sets a value while==compares values.