A two inputs NAND gate with inputs A and B has an output “0” if:

Both A and B are 1

A is zero

B is zero

Both A and B are 0