What do you mean? You can use the row number if that's what you're referring to.
Hi @tatiang i just wanted to know the reason why there was not Index attribute in tables, i wanted to put it because i needed to express a positive number like Score but Index attribute wasn't there in tables, and there must be a reason for that, i think.
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
Right, I understand your question now, but I don't have an answer! I actually hadn't noticed that before.
Hi @tatiang i just wanted to know the reason why there was not Index attribute in tables, i wanted to put it because i needed to express a positive number like Score but Index attribute wasn't there in tables, and there must be a reason for that, i think.
I know that many people use Index for this purpose, but frankly it is a bad way to do it. If a value gets negative with out your intention, just letting the datatype block it from happening can result in other unwanted behaviors.
Index are supposed to be more memory efficient compared to integer, in that scenario having them in tables makes perfect sense.
Hi @tatiang i just wanted to know the reason why there was not Index attribute in tables, i wanted to put it because i needed to express a positive number like Score but Index attribute wasn't there in tables, and there must be a reason for that, i think.
I know that many people use Index for this purpose, but frankly it is a bad way to do it. If a value gets negative with out your intention, just letting the datatype block it from happening can result in other unwanted behaviors.
Index are supposed to be more memory efficient compared to integer, in that scenario having them in tables makes perfect sense.
I hope somebody from GS tell us which is the reason why there is not Index attribute in tables. Just for curiosity
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Basically, you need to constrain a given index attribute to the specific table value.
Hopefully, soon we will get a direct attribute value for tables, but it's probably not their first priority.
Hope this helped!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Index are supposed to be more memory efficient compared to integer, in that scenario having them in tables makes perfect sense.