Note that in Mark's reply, the variable "my1" is not actually used, so it can be removed from the code:
<$vars foo=bar>
<my2>prefix[b]then[YES!]] }}}
</$wikify>
</$vars>
The important idea here is this:
When you write {{!!myfield}} *outside* a filter, it automatically gets "wikified"
to *display* the correct value, "bar".
However, when you write {!!myfield} *inside* a filter, no wikification occurs,
so the value that is used is literally "<<foo>>".
Mark's solution uses the $wikify widget to explicitly convert the field value from
a variable reference to the *value* of that variable reference, and only then,
use that result within the filter.
-e