Check two variables?

Hey all,
I was wondering if it is possible to check two variables as in the example:
if (Wall == 2)
{
if (InvGas == 0)
{
DestroyActor("GasCan");
}
}
Thank you.
I was wondering if it is possible to check two variables as in the example:
if (Wall == 2)
{
if (InvGas == 0)
{
DestroyActor("GasCan");
}
}
Thank you.