Multi choice input dialogue

Post your questions and help other users.

Moderator: Martin

Post Reply
hcporto
Posts: 10
Joined: 09 Jun 2014 21:14

Multi choice input dialogue

Post by hcporto » 28 Apr 2016 00:44

Hi.
I am trying to make a flow that delete some folders.

It should work like:

1-Ask witch folder i want to delete (multi choice input dialogue)

2-Delete the folders based on the selected choices.

The problem is: I have no ideia how to use multi choices. Does it save variables with my choices? If Yes i can make a expression to compare variables and delete the folders.

Can anyone help? Thanks

hcporto
Posts: 10
Joined: 09 Jun 2014 21:14

Re: Multi choice input dialogue

Post by hcporto » 28 Apr 2016 01:33

I realize now it does save the results as [1,2,3,4]. Now my problem is how to use this variable {indices} on an expression.

Something like:
If índices contain 1 = do this
If índices contain 2 = do that
Last edited by hcporto on 09 May 2016 02:57, edited 2 times in total.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Multi choice input dialogue

Post by Martin » 28 Apr 2016 18:13

Hi,

You can use an action Script:
if (containsElement(indices, 1))
{
// do this
}
else if (containsElement(indices, 2))
{
// do that
}

or a condition Expression:
containsElement(indices, 1);

The flow continues on the true branch when 1 is contained in the list.

Regards,
Martin

Post Reply