I think I figured it out. So much simpler.
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
Just make sure you mark your solution as “solution” so that others with this problem can find it easily!
1 Like