KRC4
WV - V3.1.8_Build22
So I know in most coding the "%" operator is used to tell if there is a remainder when 2 numbers are divided. Normally I use this operation:
Count % 2 <> 0 ; ODD
Count % 2 == 0; EVEN
Is there an operator like this in KRL?
Here is an outline of what I am trying to acomplish:
Code
RUNCOUNT =1
CCOUNT =1
LOOP
IF COUNT == ODD THEN
SPTP P1
ENDIF
IF COUNT == EVEN THEN
SPTP P2
ENDIF
COUNT = COUNT+1
IF COUNT = RUNCOUNT + 1 THEN
EXIT
ENDIF
ENDLOOP
Display More
I know about variable deceleration, and currently these are all declared as INT's
Does anybody have a way or an operation to determine if a variable value is ODD or EVEN?