Select only even numbers from a table
patricia.brady
Member, PRO Posts: 49
in Tech Support
Hello,
Is it possible to select only the even numbers from a row in a table, in the order in which they appear?
I've tried using the mod function and also tried creating a new table...hit a wall!
Grateful for any insight.
Thank you,
Patricia
Comments
If I'm understanding correctly, your table has numbers in each column of a row and you want to retrieve only the even numbers?
For example...
135 44 18 199 5 16 7
...would return...
44, then 18, then 16?
If so, you can do this with the Loop Over Table behavior.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Here's a demo.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Wow! Great stuff, thank you Tatiang