Welcome to WebmasterWorld Guest from 220.127.116.11
<!--#if expr="$variable = /foo¦bar¦sna/" -->
As written, it matches words like "food" & "snack".
I realize I could split it up into 3 non-regular expression conditional statements ($variable=foo ¦¦ $variable=bar, etc.), but I'd like to keep it together for elegance and maintainability.
When using a regex, then you need to anchor your pattern to the start and the end of the string:
<!--#if expr="$variable = /[b]^[/b](foo¦bar¦sna)[b]$[/b]/" -->
Alternatively, you could use the or operator, which is written as
<!--#if expr="$variable = foo [b]¦¦[/b] $variable = bar [b]¦¦[/b] $variable = sna" -->
I haven't actually tested either variation, but they should at least give you a start into the right direction.