Easier way to add columns?
I think I remember reading somewhere there was an easier way to add up a column of a table rather than going tabelvaluecell plus tabelvaluecell plus ect
Was this correct? Is there another way and quicker way to add up all the values in a column?
Comments
Not at my computer to look at the moment.
Change Attribute: self.tableRow = 0
Timer: Every 0 seconds
..Rule: If self.tableRow < tableRowCount(table)
....Change Attribute: self.tableRow = self.tableRow + 1
....Change Attribute: self.columnTotal = self.columnTotal + tableCellValue(table, self.tableRow, column)
EDIT: The dots at the start of the lines are to show how each thing is nested.
And @KevinCross, you can use option/alt+space on the forums to
indent text.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User