04-23-2009 03:47 AM
hi guys,
im trying to count every second iteration of a for loop, so when the loop twice it registers 1 on a counter , or eight times would register 4 ect, ive tried some of the normal nurmeric functions and not getting the effect im looking for ,
any suggestions
thanks !
Solved! Go to Solution.
04-23-2009 03:53 AM
HI,
Try Using the Quotient and Remainder Function under the numeric pallete. Divide the iteration by 2 and when there is no remainder i.e is a direct multiple of 2 you will get 0 out. Which you can then use to add to your count value with a few more primatives. This approach works well with any integer and probably with non integers as well although you may want to try those out for yourself and let me know how you get on 😉
Craig
04-23-2009 05:44 AM
craigc ,
so so many functions !! after playing around with quotient and remainder function , and adding some other numerics i i got the what i was looking for !
thank you !!