Dave asked:
> Why not do it as nested Ifs? I would dislike such a complex IF as you are 
> describing in any language.     What would this look like? When I originally 
> did this, I had it as an IF/ELSE construct like below, but didn't like the 
> duplicating of the code for 'Do Stuff'. I had it like this:  IF    A    Do 
> stuff ELSE    IF (B OR C) AND D       Do stuff    ENDIF ENDIF     Since there 
> was just 1 test before the stuff in the 'ELSE' clause above, I thought it 
> wouldn't be too bad to incorporate it into 1 'IF' statement.    Is there a 
> way to nest IFs to where the 'Do stuff' isn't duplicated? This is the only 
> one I can see, but the first 'IF' is wasted if 'A' is true:
IF   (ICM,R1,15,CtlBlk,M)   LCR  R1,R1,ENDIF
IF   (TM,A,BIT,O),OR,(LTR,R1,R1,P),AND,(ICM,R1,15,FIELD(R1),NZ)   Do stuffENDIF 
                                          

Reply via email to