Variables in Knime Expression

I am looking to have an intermediate variable within the Expression window.

As you can see in the screenshot, the declaration of a variable is not supported. Is it supported at all?

var pos = find($[“Iteration”], “DG-”) ← This does not work… Also INTEGER pos or without var did not work.