Check if a table cell (boolean) is true or false before calling it
I am on the final strip for publishing my first game. Just one more thing I need to know to get done:
I want to set an attribute (integer) = row number of a table. No problem till here. The row that should be called is not defined but has a column with a boolean. Only one of the rows has this boolean set to true, all others are false. What I want is to check for the row that has the boolean column set to true before defining the integer attribute to that row.
Example: There are 5 Rows and 2 Columns. Column 1 has the description in it, column 2 is set to boolean. The boolean in row 2 is set to true, rows 1, 3, 4 and 5 are set to false. The attribute therefore should be set to 2.
Any workarounds or ideas?