Hexless
2013-03-22 16:53:47
Okay so in a few of my scripts i've been needing to use else but i dont know how if anyone could tell me that would be great
here's abit of code that i need it for!
[PHP]Procedure mRock;
Begin
If FindColorSpiralTolerance(X,Y,Copper,MSX1,MSY1,MSX2,MSY2,15) Then
Mouse(X,Y,5,5,false);
P07_ChooseOptionMulti(['ine']);
Begin
If FindColorSpiralTolerance(X,Y,Tin,MSX1,MSY1,MSX2,MSY2,15) Then
Mouse(X,Y,5,5,false);
P07_ChooseOptionMulti(['ine']);
End;
End; [/PHP]
The Else will make it use the tin if tin is typed into the Const and make it use copper if copper is typed into the const
here's abit of code that i need it for!
[PHP]Procedure mRock;
Begin
If FindColorSpiralTolerance(X,Y,Copper,MSX1,MSY1,MSX2,MSY2,15) Then
Mouse(X,Y,5,5,false);
P07_ChooseOptionMulti(['ine']);
Begin
If FindColorSpiralTolerance(X,Y,Tin,MSX1,MSY1,MSX2,MSY2,15) Then
Mouse(X,Y,5,5,false);
P07_ChooseOptionMulti(['ine']);
End;
End; [/PHP]
The Else will make it use the tin if tin is typed into the Const and make it use copper if copper is typed into the const