I have an attribute field that will have either 13 digits or 14 digits depending on the location they are at. Is there a way to differentiate these attributes using some kind of tester that looks at the location attribute and says, "If it has 14 digits it goes this way, and if it has 13 digits it goes that way!"?
Page 1 / 1
Hi @gmbutler2,
The StringLengthCalculator is the transformer you need. It will give you the number of characters then you can use a Tester to separate them.
Cheers.
You can also use the StringLength function directly inside the tester. E.g. if your attribute is called "my_attr"
@StringLength(@Value(my_attr))
As in:
Hi @gmbutler2,
The StringLengthCalculator is the transformer you need. It will give you the number of characters then you can use a Tester to separate them.
Cheers.
Thank you so much! That solves my problem exactly. Have a great day! :)