cancel
Showing results for 
Search instead for 
Did you mean: 

PI Graphical Mapping - How to calculate Length

pi_consultant1
Participant
0 Kudos

Dear Friends,

I have a requirement where I have to count the length of a string. It must be 13 characters long and if its not 13 characters long I have to SUPRESS the output field.

Can you help me with this problem?

Thank you,

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi,

You could obtaint the desired goal with the standard functions:

length - from text funtions

constant - from cosntants functions

equalsA - from artihmetic functions.

Regards

pi_consultant1
Participant
0 Kudos

Thank you very much Inaki

Is there difference between using equalsA or equalsS?

former_member184681
Active Contributor
0 Kudos

Hi,

Yes there is a difference: equalsS treats the inputs as strings, while equalsA as numbers. Make sure to use the correct one, depending on the data type to be compared - otherwise you might find unexpected results. For instance, 1.0 and 1 are not equal, if you treat them as string instead of numbers.

Regards,

Greg

Answers (0)