Any suggestion on how I can make this work in 1 sequence.....
....
N210 IF [V9 GT 1] GOTO N240
N220 LRT=DL+.06
....
...is there a way to set a variable based on a condition?
....
N210 IF [V9 GT 1] LRT=DL+.06
....
Cheers!
Any suggestion on how I can make this work in 1 sequence.....
....
N210 IF [V9 GT 1] GOTO N240
N220 LRT=DL+.06
....
...is there a way to set a variable based on a condition?
....
N210 IF [V9 GT 1] LRT=DL+.06
....
Cheers!
I'm just a butcher masquerading as a machinist
I would do the following
IF [V9 GT 1] NAAA
GOTO N100
NAAA LRT=DL+.06
N100
BLAH BLAH
I am looking to reduce the overall number of lines/characters from the prog.
here is a sample of how the prog is currently configured...
N02
IF [V9 GT 1] GOTO N04
LRT=DL+.06
IF [V9 EQ 1] GOTO N03
LRT=DL+V16
N03
V9=LRT
N04
LRT=V9
this is how I would like it to look
N02
IF [V9 NE 0 OR 1] N03
IF [V9 EQ 0] LRT=DL+.06
IF [V9 EQ 1] LRT=DL+V16
V9=LRT
N03
LRT=V9
is it possible, I dont know if or how the "OR" statement works
also the "if [******] then x=y" statement is a source of problems also
suggestions and advice appreciated
Cheers!
I'm just a butcher masquerading as a machinist
Okuma's IF logic is coded for a jump following the logic statement. budgieW's example is the way I would do it.
Kev
You can compress slightly by combining line numbers with variables being set. Multiple variables can be set on the same line also if need be.
Your OR statement will work if you add more brackets and spaces can be eliminated before and after deliminators:
IF[[V9 NE 0]OR 1]N03
Hope this helps,