First the code:

```
if (A1.Text != "" || A1.Text != null)
{
    string D1 = "<"+A1.Text+">";
}
else
{
    string D1 = "null";
}

```

Now I am trying to later reference D1.

Ex `this.label1.Text = D1;`

The reference and the if statement that defines the string are in the same parent block, so why can I not use D1?