GameSalad

Howdy, Stranger!

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

expression to add values of 10 cells in a table?

3absh3absh Posts: 538Member, PRO

I need to add 10 cell values in a single row

Comments

  • JapsterJapster Posts: 672Member
    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

    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... :wink:

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

    @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.