Oops! Just reread my post. It should have been "==" (is equal to), not "~=" (is not equal to). That way, the first time you assign a value to "temp" ("rc_model_type" still equal to "null"), "rc_model_type" will change to that first value assigned to "temp". After that, no subsequent changes to "temp" will affect "rc_model_type".