cases are pretty much a series of 'if i = n then' in the form of
SCAR Code:
case i of
n: {if i=n then} runN;
n2: {if i=n2 then} runN2;
etc.
end;
What you can do to use cases in bar smelting is use something like:
SCAR Code:
case toSmelt of
copper: begin
ore1:= 14;
ore2:= 14;
end;
iron: ore1:= 28;
etc.
end;
If you need to add more than one line, you have to add a begin and end (as you would do in an if()then with more than 1 line of code to do).
If this isn't clear enough, then there's a couple of good case based tutoirals and most of the beginner tutorials cover cases as well.
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.