To execute multiple sub processes

arjun
arjun New Altair Community Member
edited November 2024 in Community Q&A

Hi,

Need help in using switch case without a break so that it uses a right case for execution in Rapidminer 

switch (n)
​{
case constant1:
// code to be executed if n is equal to constant1;
break;

case constant2:
// code to be executed if n is equal to constant2;
break;
.
.
.
default:
// code to be executed if n doesn't match any constant
}

 

 

Tagged:

Answers

  • jczogalla_edu
    jczogalla_edu New Altair Community Member

    Hi arjun,

    you can use the "Select Subprocess" operator to model each subprocess you need. In the parameter "select which" you can use a macro that you have to create before this operator to select the apropriate subprocess.

     

    Cheers

    Jan

  • Telcontar120
    Telcontar120 New Altair Community Member

    If you have only two conditions then you can also use the related "Branch" subprocess operator.