Case select?

 
 
 
Posted by:MattClemntson
Data created:15 October 2012

I've just discovered the If node - great that there are logic operators included. Is there an equivalent of the select case construct for branched logic?

Do you mean like if you provide an integer input and it then provides a branch for when input value is 0, 1, 2, 3, etc? Currently there's only if, I will add the "Switch" operator into Ephere.Utilities but meanwhile it should be pretty easy to script one yourself.

There's one nuance with branched logic operators and that is they should not evaluate branches they won't be returning. There's a special way to handle that in Lab (if you write your own script) which I'll giver later, meanwhile I'll implement it in Ephere.Utilities.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

That's exactly what I mean, great news that you'll add it Laughing