Replace recordelement w variable in expression

I was not sure how to search for this in prior posts, so here goes.
I am trying to enable a process that would allow for the use of a variable to represent a record element in either a branch or expression.

This is the more standard way ->
%/FFIn/OutputFF/E1MARAM/MTART% = %VALUE1%

I need to be able to have the record/element replaced with a variable that would contain the same content and be interpreted by wM as the above example. ie; replace /FFIn/OutputFF/E1MARAM/MTART w. %newVar%

The reason for this is that I am attempting to match record/element value based on variables for both the element ‘name’ and the value of that element.

-jk