Put it into a local variable, like:
Code:
var %x = (rock)
if ($1 != %x) { stuff }