I have a stupid code like this… have 3 input and check their values. skip the value if it is null and includes the rest… so, are there any better code for this? or in python? thanks!
a=in1;
b=in2;
c=in3;
d=[Imperative]
{
if ((a==null) && (b==null))
{
return=c;
}
elseif ((b==null) && (c==null))
{
return=a;
}
elseif ((a==null) && (c==null))
{
return=b;
}
elseif (a==null)
{
return=List.Join([b,c]);
}
elseif (b==null)
{
return=List.Join([a,c]);
}
elseif (c==null)
{
return=List.Join([a,b]);
}
else
{
return=List.Join([a,b,c]);
}
};