toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Working with tables
haplo67
Member
Posts:
38
December 2012
in
Working with GS (Mac)
Hi,
can I compare an attribute with an entire column of my table?
Comments
haplo67
Member
Posts:
38
December 2012
Bump!
tatiang
Member, Sous Chef, PRO, Senior Sous-Chef
Posts:
11,949
December 2012
Do you mean search for an attribute among all cells in a column? Then yes, you can write a loop that does that.
haplo67
Member
Posts:
38
December 2012
@tatiang
, do you can explain me how write this loop?
tatiang
Member, Sous Chef, PRO, Senior Sous-Chef
Posts:
11,949
December 2012
Take a look at my post here:
http://forums.gamesalad.com/discussion/41887/i-can-make-a-loop-in-the-gs
. Just insert the code you want for comparing attributes (e.g. when game.searchKey is tableCellValue(TableName,Row,self.LoopCounter) ... [whatever action you want to happen]).
haplo67
Member
Posts:
38
December 2012
@tatiang
, thank you! You save my life!
Sign In
or
Register
to comment.
Comments