If node not working as expected

I think I figured it out. So much simpler. :slight_smile:

Simplified further:
A;
B=30;
C = [Imperative]
{
if (A > B) {
return A.substring(0,B);
}
else
{
return A;
}
};

Good to hear you have a working solution :slight_smile:

Just make sure you mark your solution as “solution” so that others with this problem can find it easily!

1 Like