Script File - Script for assigning waste type

*     Script for assigning waste types
if (lodes3 lt 0.5 and weathering eq 1) then
      oretype = 1
elseif (lodes3 lt 0.5 and weathering eq 2) then
      oretype = 2
elseif (lodes3 lt 0.5 and weathering eq 3) then
      oretype = 3
*     Script for assigning low grade types
elseif (lodes3 gt 0.5 and lodes7 lt 0.5 and weathering eq 1) then
      oretype = 4
elseif (lodes3 gt 0.5 and lodes7 lt 0.5 and weathering eq 2) then
      oretype = 5
elseif (lodes3 gt 0.5 and lodes7 lt 0.5 and weathering eq 3) then
      oretype = 6
*     Script for assigning numerical oretypes
elseif (lodes7 gt 0.5 and weathering eq 1) then
      oretype = 7
elseif (lodes7 gt 0.5 and weathering eq 2) then
      oretype = 8
elseif (lodes7 gt 0.5 and weathering eq 3) then
      oretype = 9
endif