-
sourcetext: two expressions work well alone, but not together
Hello dear fellows,
I wrote two lines of code for a source text:
var txt = value;
txt.trim(); //removes whitespaces in front of text
txt.substr(0/37);//limits the string to 37 signs
Both expressions do what they should do when applied alone, but when I put them together,
the trim-expression seems not to function- whitespaces in front will not be cutted off. I tried to change to order of the two line as a test, but I still have no clue why does not work properly. I used the clamp-expression in an other situation, but I guess this is a wrong way. Does anyone have an idea to put them together or have a different solution? Thanks you so much!
Yours, Matthias