I have the code:
I need to check a lot of tags like: Spot1.Tag = Spot3.Tag, etc. I know I can run it with a bunch of If Then's but is there a better way to do this? I am just trying to learn how to be more efficient with less lines of code.
B4X:
If Spot1.Tag = Spot2.Tag Then
Match = Match + 1
End If
I need to check a lot of tags like: Spot1.Tag = Spot3.Tag, etc. I know I can run it with a bunch of If Then's but is there a better way to do this? I am just trying to learn how to be more efficient with less lines of code.