Skip to main content
shukurs0001
Known Participant
Aug 9, 2022 11:49 AM UTC
Solved

Convert a string to array.

I have a string that need to convert into an array.

E.g: 
local!name: "shukur", - > {"s","h","u","k","u","r"}

How can we add that?

    harshitb6843
    Brainy
    Aug 9, 2022 11:53 AM UTC

    a!forEach(
      items: enumerate(len("shukur")),
      expression: index("shukur",fv!index,{})
    )

    7 replies

    harshitb6843
    Brainy
    Aug 9, 2022 11:53 AM UTC

    a!forEach(
      items: enumerate(len("shukur")),
      expression: index("shukur",fv!index,{})
    )

    stefanhelzle0001
    Brainy
    Aug 9, 2022 1:01 PM UTC

    Using more advanced features like partial evaluation this could be solved like this

    mid("shukur", _, 1)(1 + enumerate(len("shukur")))

    docs.appian.com/.../Expressions.html

    mikes0011
    Brainy
    Aug 9, 2022 1:21 PM UTC

    guys... guys...

    char(code("shukur"))

    The Expression Guru
    harshitb6843
    Brainy
    Aug 9, 2022 1:23 PM UTC

    [emoticon:458682de9e4d4e7c94377c4fe2884528]

    mikes0011
    Brainy
    Aug 9, 2022 1:24 PM UTC

    every time the same thing gets asked, lol

    The Expression Guru