ASE Linear analysis - leave out loadcases in a defined interval

Hello,

I want to leave out all loadcases from index 30 to 41.
What is the easiest way to go about this? So far i have written this, but it will only remove 30 and 41. Not everything inbetween.

+PROG ASE urs:6 $ Linear Analysis - Straddle Carrier con area
HEAD
SYST PROB LINE ! Linear analysis
CTRL SOLV 4 ! Use “Direct Parallel Sparse Solver (PARDISO)” - Faster
CTRL WARN 185,398,399 ! Turn off warning for load outside plate

if ($(plate)==4)
loop#i LC_SC
if (#i <> 30) & (#i <> 41)
LC #LC_SC(#i)
endif
endloop

end

Hello,

Try something like this:

LOOP#I LC_SC
     IF #I < 30
          LC #LC_SC(#I)
     ELSEIF #I > 41
          LC #LC_SC(#I)
     ENDIF
ENDLOOP

Maybe it’s possible to have only one IF clause with two conditions.

Thanks, that worked perfectly.