If I have a statement like the one below how do I repeat it for other spaces on the board? For instance if I want to say if (findBlock(1,1) == findBlock(1,2) == findBlock (1,3) and so own. I have tried different things and it won’t work. I want to end up comparing block 1,1 with every block on the board and then bring back a message. I just want to do it want statement though. If I can’t do it in one how do I repeat it like below and just compare two squares at a time?
[lua]
if (findBlock(1,1) == findBlock(1,2)) then
native.showAlert(“Uh-oh”,“You can’t do that.”,{“Try Again”});
–this stops our alert box from showing
return false
end[/lua]
[import]uid: 72372 topic_id: 12782 reply_id: 312782[/import]