[SOLVED] Define an undefined variable

Like it’s not defined again

Here you define it first and that is also not what I want. I just want to check in the if statement if the variable exist and if not I want to define it. Also I want to make it not exist again on another place in my script.