Variable scope

You can only use a variable declared in a conditional or iterating statement from its definition until the end of that statement (statement scope).