Home › Forums › Problems and solutions in GDL › Others › Attempting to add Transformations to IF/THEN statement › Reply To: Attempting to add Transformations to IF/THEN statement
Joachim is quite right.
Another nice way to keep track of your transformation stack is to assign a variable to count every trafo you make:
_nTrans = 0 IF HoodPosition = “Open” THEN ROTx 294 ADDz 0′-10 3/4″ ADDy -3′-6 5/32″ _nTrans = _nTrans + 3 ELSE ! whatever, just keep track of transformations here as well, if you use any ENDIF !script here DEL _nTrans
This way you don’t have to use the condition again to enable the DEL command.
Library Developer, Library Team