Using IF to get 2 different choises

Im doing a script and i need that this script with data-shapes UI do:

Select a category

select if you want to delete all or delete some elements based in a parameter name

im not sure im trying to use IF

what do you think?

You can combine your graph with a second UI to apply those options.

I did found another option tomorrow i will post it for general info here!