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
Multi choice input dialogue
Moderator: Martin
Re: Multi choice input dialogue
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
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.
Re: Multi choice input dialogue
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
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