use match::simple "match"; if (match $name, [$t1, $t2]) { ...; }