Jump to content
Sign in to follow this  
Tropocho

SELECT not working?

Recommended Posts

Tropocho

Hello, i have one problem, this is not working for me :

Local $c=Random(1,2)

Select

Case $c=1

Actions1,2,3..n

Case $c=2

Actions1,2,3..n

EndSelect

So , this is my code and is not working, it never enter in any case, what is wrong?, maybe $c=Random?.

 

Thanks!

 

Share this post


Link to post
Share on other sites
funkey

What about the third parameter??

  • Like 1

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites
Tropocho
11 minutes ago, funkey said:

What about the third parameter??

Damm!!!!!, the third parameter!!, of couse, Ramdom was returning 1 ,2,3 or 4 but with decimal , and my cases were integer!.

Thanks!!!, now its works!.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.