@abuabed84 said:
I need to add 10 cell values in a single row
You might want to re-organise your table (flip it), as I've had this in the past - there's a tableColSum function, but don't think there's a row equivalent?
So it's a lot easier to just (well, in my case it was!) flip it so your columns are Player, and Computer, and your rows are your cell entries for the values to be checked?
Player Computer
1 ....... 4
3 ....... 2
etc....
Hope that helps! - you could run a manual summing up routine of course, but the method I mention is the path of least resistance...
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
@Japster's right but if you're not wanting to do that, you could Loop over Table and add the indexed cell to a sum attribute.
Comments
You might want to re-organise your table (flip it), as I've had this in the past - there's a tableColSum function, but don't think there's a row equivalent?
So it's a lot easier to just (well, in my case it was!) flip it so your columns are Player, and Computer, and your rows are your cell entries for the values to be checked?
Player Computer
1 ....... 4
3 ....... 2
etc....
Hope that helps! - you could run a manual summing up routine of course, but the method I mention is the path of least resistance...
@Japster's right but if you're not wanting to do that, you could Loop over Table and add the indexed cell to a sum attribute.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User