How to compare 2 string variables? (if nameA == nameB)

Hi Dan,

The attached action creates variables by saving names, It can create the following variables
Market Name BTC XRP
Market Name ETH XRP
Market Name USDT XRP

I want to find all variables where it has created more than one variable using the same last word
(in this case its XRP)

therefore the result would be 3 variables
Market Name BTC XRP
Market Name ETH XRP
Market Name USDT XRP

I need the results to later do a set of KM actions, as there are 3 results I would need to do 6 calculations if there was 2 results such as

Market Name USDT XRP
Market Name ETH XRP

would I then do 2 calculations.

There will only ever be 2 or 3 results.