Skip to Content
author's profile photo Former Member
Former Member

Length: Message mapping

May i know when can we use Length function in message mapping.

any examples.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 03:00 PM

    Hi,

    for example you could use it together with the substring function.

    If you want for example use substring to select the first three characters of a string like input ABCDE -> output ABC

    But if your input has only a length of 2 like AB your mapping results in an error.

    You could check this with the length function:

    if input length > 2 then substring else ...

    Hope it helps.

    Regards

    Patrick

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      sorry this time I don't understand what you want to do 😔

      But the length function returns a number -> representing the count of characters of the input field.

      If you input is

      ABCDE

      the output of the length function will be 5

      Some more examples:

      ABCDEFG --> length --> 7

      ABCDEFGHIJ --> length --> 10

      A --> length --> 1

      Regards

      Patrick

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.