How to read 1 single string A|B|C|D from Launch and split into 4 entries in evar | Community
Skip to main content
Luca_Lattarini
Level 9
December 16, 2020
Solved

How to read 1 single string A|B|C|D from Launch and split into 4 entries in evar

  • December 16, 2020
  • 2 replies
  • 3449 views

Hello everyone,

 

How can I split this single string A|B|C|D from Launch into 4 differents entries?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by yuhuisg

The simplest is with custom code:

 

var str = "A|B|C|D"; var values = str.split("|"); // values = ["A", "B", "C", "D"]

 

 

2 replies

yuhuisg
Community Advisor
yuhuisgCommunity AdvisorAccepted solution
Community Advisor
December 16, 2020

The simplest is with custom code:

 

var str = "A|B|C|D"; var values = str.split("|"); // values = ["A", "B", "C", "D"]

 

 

yuhuisg
Community Advisor
Community Advisor
December 17, 2020
yuhuisg
Community Advisor
Community Advisor
December 16, 2020

--

Luca_Lattarini
Level 9
January 7, 2021
@yuhuisg, It works well, If I use List Variable but I have an import data from API 1.4 where I dont use List Variable. Can I use List Variable from API?