Oh, and in case it wasn't apparent: you can just add

local1 = nil

... before:

local1 if local1 = "created"

... to declare the variable, so that it can be used.

-- Matma Rex