expression to add values of 10 cells in a table?

3absh3absh Member, PRO Posts: 586

I need to add 10 cell values in a single row


  • JapsterJapster Member Posts: 672
    edited September 2018

    @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


    Hope that helps! - you could run a manual summing up routine of course, but the method I mention is the path of least resistance... :wink:

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,928

    @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

Sign In or Register to comment.