LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Identify even rows

    Employee
    Posted 10-24-2014 01:52

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ThomasT

    Is there a way to identify even rows?
    Something like
    execCount.isEven() etc?


  • 2.  RE: Identify even rows

    Employee
    Posted 10-24-2014 02:48

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: andycooper

    Thomas,

    Use emit * where execCount % 2 == 1 for odd rows and emit * where execCount % 2 == 0 for even rows.

    Ta


  • 3.  RE: Identify even rows

    Employee
    Posted 10-24-2014 04:31

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ejones

    Thanks Andy. I didn't know you could use the % operator. I had always used the mod() function which looks like this: execCount.mod(2) == 0


  • 4.  RE: Identify even rows

    Employee
    Posted 10-27-2014 04:11

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ThomasT

    Thanks Andy!