How do I click on an element based off of a variable name?

I am trying to have my bot click on certain elements depending on what a variable equals. For example: the variable = " Collaterals" and I want to click on this rather than creating a bunch of if statements checking for each individual possibility.
What’s the easiest and cleanest way to get this done without using a bunch of different activities?

Use the variable in a dynamic selector.

would i do do the element scope activity as well so the bot knows the general area for where i want it to search?