NiGHTMARE Posted April 16, 2005 Share Posted April 16, 2005 Any advice on how I could condense the following code into something a bit shorter and sweeter? ACTION_IF NOT FILE_EXISTS ~SPWI109.spl~ THEN BEGIN COPY ~LoI/spells/NMWI101.spl~ ~override/SPWI109.spl~ END ELSE BEGIN ACTION_IF NOT FILE_EXISTS ~SPWI121.spl~ THEN BEGIN COPY ~LoI/spells/NMWI101.spl~ ~override/SPWI121.spl~ END ELSE BEGIN ACTION_IF NOT FILE_EXISTS ~SPWI122.spl~ THEN BEGIN COPY ~LoI/spells/NMWI101.spl~ ~override/SPWI122.spl~ END ELSE BEGIN ACTION_IF NOT FILE_EXISTS ~SPWI126.spl~ THEN BEGIN COPY ~LoI/spells/NMWI101.spl~ ~override/SPWI126.spl~ END ELSE BEGIN ACTION_IF NOT FILE_EXISTS ~SPWI127.spl~ THEN BEGIN COPY ~LoI/spells/NMWI101.spl~ ~override/SPWI127.spl~ END ELSE BEGIN ACTION_IF NOT FILE_EXISTS ~SPWI128.spl~ THEN BEGIN COPY ~LoI/spells/NMWI101.spl~ ~override/SPWI128.spl~ END ELSE BEGIN ACTION_IF NOT FILE_EXISTS ~SPWI129.spl~ THEN BEGIN COPY ~LoI/spells/NMWI101.spl~ ~override/SPWI129.spl~ END ELSE BEGIN ACTION_IF NOT FILE_EXISTS ~SPWI130.spl~ THEN BEGIN COPY ~LoI/spells/NMWI101.spl~ ~override/SPWI130.spl~ END ELSE BEGIN COPY ~LoI/spells/NMWI101.spl~ ~override/NMWI101.spl~ END Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.