whats "!unset" ??
It unsets the variable.
Sirrich it looks like u have tried to copy bits from another script,
try to understand what all the terms in the script mean as u have put a few unnecessary bits in there.
But what exactly are you trying to do? set your location to a variable? or write it to a ini? or what?