Question
Quavo
US
Last activity: 4 Feb 2020 10:28 EST
@substring function not working correctly with Alpha Characters
Hi!
I am trying to use the function substring to determine an action that must be taken when the first position of a value does not starts with a specific letter:
@substring(.ReferenceNumber,0,1)!="F"
However, when I run my process is not working. I tried to run from the decision table and it keeps giving me a wrong result. I attached a picture with the test Page Result.
What I used, that works great was !@startsWith(.ReferenceNumber,"F"). However, I dont understand why the substring validation is given an unexpected result.
Any Thoughts?