allainmfg
Mechanical
- Jan 15, 2007
- 20
I'm trying to program a line where I have a number and when this number is a even or odd number, the program changes. I'm looking for the fonction that will allow the program to change the pattern if x=2, 4, 6, 8, 10..... and will allow to change it again if x=1, 3, 5, 7, 9......
Like, I have
IF x 'fonction for even number'
pattern_1=2
else
pattern_1=3
endif
thanks
Like, I have
IF x 'fonction for even number'
pattern_1=2
else
pattern_1=3
endif
thanks