问题
logic function in relations -- [summary]
Thanks again for all of your help. It has been at least 3 years since I
have had to add some "smarts" to my relations. I just plain forgot the
syntax that proe is looking for (==, ELSE on own line, ENDIF for every IF)
IF dxxx==100
dxyz=10
else
dxyz=10
endif
The syntax is so similar to C that PTC call sit that... <grin>
If (dxxx==100) /* use a double equal sign here as a logical evaluator
rather than an assignment operator =
dxyz=23.1
dyyz=200
else
dxyz=30
dyyz=150
endif
The key is to remember to have an endif statement for every if, as shown
below:
IF asm.mbr.part_no=="99999"
Rqty="1"
ELSE IF asm.mbr.part_no=="99998"
Rqty="2"
ELSE
Rqrt=rpt.qty
ENDIF
ENDIF
Thanks for all the responses!
e
Michael Wahl
Product Development Engineer
External Fixation
610-719-6500 x6913
have had to add some "smarts" to my relations. I just plain forgot the
syntax that proe is looking for (==, ELSE on own line, ENDIF for every IF)
IF dxxx==100
dxyz=10
else
dxyz=10
endif
The syntax is so similar to C that PTC call sit that... <grin>
If (dxxx==100) /* use a double equal sign here as a logical evaluator
rather than an assignment operator =
dxyz=23.1
dyyz=200
else
dxyz=30
dyyz=150
endif
The key is to remember to have an endif statement for every if, as shown
below:
IF asm.mbr.part_no=="99999"
Rqty="1"
ELSE IF asm.mbr.part_no=="99998"
Rqty="2"
ELSE
Rqrt=rpt.qty
ENDIF
ENDIF
Thanks for all the responses!
e
Michael Wahl
Product Development Engineer
External Fixation
610-719-6500 x6913
