How to split 3 movies separated by commas from an input dialog

I want to store the names of three movies in an array, but I want to enter the names in a single input dialog
For example: movie1, movie2, movie3

As I am creating an array, I would like to store these 3 movies names, but I don’t know how to separate them with commas

string_var.split(","c).toarray()

1 Like

@ Veera_Raj what is c in (","c)

Hi @indiedev91

You can also try with this expression

Split("movie1, movie2, movie3",",")(0)

Here → “,” is the separator
c -. character

Output
(0) → movie1
(1) → movie2

Regards
Gokul

1 Like

Hey!

Try Like this:

Assign arrMovies = {"movie1","movie2", "movie3"}

Use For each activity and Pass the arrMovies

in each iteration you’ll get movie1,movie2 and movie3

Now use Message box to display the each Movie Name

OR

Use assign activity to store the value

Reference:

Regards,
NaNi

c is a chararray

Hi @indiedev91 , I hope you are doing well.
Regarding your problem I am attaching a workflow as an solution, I hope it will help you to solve the problem.
Movies.zip (2.3 KB)

Pass movie names separated by commas in input dialog box example: hello brother,dark,inception

Thanks & Regards,
Shubham Dutta

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.