$...$ for GKC property specification

I’m having problems working out how to get a Global Key Command expression to work the way I need it to. Maybe I have another problem, so to keep it simple, should this expression compare the value of the GKC target piece with that of the issuing piece?


LocationName!=$LocationName$ (Legacy) or
{LocationName!="$LocationName$"} (Beanshell)

I’m using Beanshell and the expression you suggest, but didn’t seem to be able to get it to work. I will look again. Thank you.