Double Expression Python

Is there a simple way to do the following thing?

So I want to look at a string in a table:
In this example the string is “Rgba”
The outcome should be:
Parameter Tox/Rgba.tox
So I use the following expression:
"Parameter Tox/" + op('ParameterDAT1')[3,1] + ".tox"

Now, I want the op(‘ParameterDAT1’) to have a different number.
Though when I’d try to use a me.digits inside the expression, that wouldn’t work.
I tried nesting f-strings but also no luck.

For now I’ll be using an evaluate, but that doens’t seem like the easiest way :slight_smile:

Hi @briekvangaever, I am not entirely sure what is the goal, but if you would like to determine which Parameter DAT to use based on me.digits (which gives you the ending number of operator where this expression is used), you could just use fstring syntax like this:

op(f'ParameterDAT{me.digits}')