Multiple If statements with lists

Is this what you need?

code:
A;
B;
C;
D;
E = [Imperative]
{
if(A==1) {return B;
}elseif(A==2) {return C;
}elseif(A==3) {return D;
}
};

2 Likes