You can use the following script - RESOURCE(EXIST UF(NAME <> "Exist_Field")) ASSIGN_UF("Test_Field", STRING, "Value" )