**So sorry everyone. I meant for there to be an asterisk in the code I posted. Please answer again.**

I'm doing a code review for a coworker, and I saw the following statement pop up:

```
if ((someClass *object1 = new someClass))
{
    // Do work
}

```

Does this statement say the same as the following?

```
someClass *object1 = new someClass;
if (object1)
{
    // Do work
}

```

I'm just trying to see if they are equal so we don't get any bugs.