SRL Archive - Help and Support

Easiest Way.


Hey321

2007-03-20 07:33:28

Well, i'm making a procedure, and i was going to have it use numbers, but how would i do it?

If(Number=1)Then

Or is there an easier/better way?

Sumilion

2007-03-20 07:56:33

if there are lots of numbers maybe do :

case number of
1: DoSomething;
2: DoSomething;
3: DoSomething;
4: DoSomething;
end;

Hey321

2007-03-20 08:08:45

There's 24 or so lol. Anyways, i need a mouse after each of them, how would it work? I'd still have to do if's i think :(.

Starblaster100

2007-03-20 14:33:16

use a case statement like Sumilion said.

[php]
case Number of
1: Mouse();
2: Mouse();
3: Mouse();
end;
[/php]