List Info

Thread: Equivalent to Select Case Statement




Equivalent to Select Case Statement
country flaguser name
United States
2008-03-06 19:25:15

Hello,

I'm trying to get a handle on all the NetLogo commands. Is there an
equivalent command or preferred set of commands that will replicate
the "select case" statement found in other languages? Currently I
have to set a boolean variable at the top of my procedure then
traverse through a bunch of if statements until one is satisfied then
set my variable to false so the procedure doesn't waste its time with
the subsequent ifs.

Best Regards,
Ola Olsson
--
Cheers,
Ola Olsson

/*******************************************
/** oeolsson%40enosis.net">oeolssonenosis.net -- http://www.enosis.net
/** "There is a time for laughing
/** and there is a time not for laughing.
/** This is not one of them.";
/*******************************************

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )