if ($param1 $cond1 $value1 $join $param2 $cond2 $value2) { return true; } Where: $param1 = $artist (variable populated by my tag reading module). $cond1 = eq $value1 = “Garth Brooks” $join = && $param2 = $album $cond2 = ne $value2 = “The Hits”