i also need to avoid any errors if the x and y values aren't in the table
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
I would use a Loop over Table for column 1 and then a rule that says
When tableCellValue(table,self.index,1)=[target X value] AND tableCellValue(table,self.index,2)=[target Y value]
Change Attribute self.foundInRow to self.index
Comments
i also need to avoid any errors if the x and y values aren't in the table
I would use a Loop over Table for column 1 and then a rule that says
When tableCellValue(table,self.index,1)=[target X value] AND tableCellValue(table,self.index,2)=[target Y value]
Change Attribute self.foundInRow to self.index
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Is it possible to use tableSearch in this case?
I really want to know how the tableSearch function works
Sure... the problem with tableSearch is that it only finds the FIRST matching result. So you'll still need a loop.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User