Expression rule

Certified Associate Developer

How to write a rule which takes two input a char and an integer,
ruleInput: (A,2)
Output: (A1;A2) 

anyone can give me the answer 

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Mike Schmitt

    Less lazy reply:

    let's pretend the rule input is actually 2 inputs, a character and a "times repeated".  I don't feel like writing a parser to accept a comma-separated value when that may have just been OP overly abbreviating what their input is going to be.

    a!forEach(
      enumerate(ri!repeats),
      ri!character & fv!index
    )

    For "A" and 2, that gives us basically their prescribed output:

    For "C" and "11", it performs more of the same:

Children
No Data