@martin.biras You could do this easily without Imperative code
imp <= 10 ? "something <= 10" :
imp <= 20 ? "something <= 20" :
"something > 20";
However, if you want to practice with Imperative code, you’ll need to loop through each item in your list to make it work
imp;
a = [];
j = 0;
[Imperative]
{
for (i in imp)
{
if (i <= 10)
{
a[j] = "something <= 10";
j = j + 1;
}
elseif (i <= 20)
{
a[j] = "something <= 20";
j = j + 1;
}
else
{
a[j] = "something > 20";
j = j + 1;
}
}
return a;
};