How to access Assets using Asset name using an if condition?

I have a list variable of different names as values.

How can I access an asset based on the Asset Name?

I want a for loop for each value in a list, and then have an if condition(if value == Asset Name) then Get Credentials of that Asset.

What can be a best possible way to achieve that?

Let me know if more details are required.

You can use a variable in the asset name property of the Get Credentials activity.