Select only even numbers from a table

patricia.bradypatricia.brady Member, PRO Posts: 49

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2019

    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.

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

    Here's a demo.

  • patricia.bradypatricia.brady Member, PRO Posts: 49

    Wow! Great stuff, thank you Tatiang

Sign In or Register to comment.