validating join variable names in "if param = $$ then"-expressions