Page 1 of 1

Multi choice input dialogue

Posted: 28 Apr 2016 00:44
by hcporto
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

Re: Multi choice input dialogue

Posted: 28 Apr 2016 01:33
by hcporto
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

Re: Multi choice input dialogue

Posted: 28 Apr 2016 18:13
by Martin
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