Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

row row row your float..

smurftedsmurfted Posts: 494Member, BASIC

So i would like to calculate all the numbers on one row in a table (the table only has numbers in it).

What is the easiest way of doing that do you think?


  • tatiangtatiang Posts: 11,459Member, Sous Chef, PRO, Senior Sous-Chef
    edited December 2017

    I assume you want a sum of all of the cells in a row? You can Loop over Table and change self.sum to self.sum+tableCellValue(name,1,self.col) and use self.col as the Loop index. Or you can put your values in columns and use the tableColSum() function.

    Demo attached. I swear I didn't intentionally pick numbers that add up to the answer to the ultimate question of life, the universe and everything.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • smurftedsmurfted Posts: 494Member, BASIC

    Well thats just fantastic fella. I tip my hat to you sir...

Sign In or Register to comment.