Example sketch IRremote ReceiveDump not working

Ok, I got the if statement thing to work: I needed to make the variable a int instead of const int. I also had to get rid of the semicolon before the statement.

if (command==0) {
    IrSender.sendRaw(ch0, sizeof(ch0) / sizeof(ch0[0]), NEC_KHZ); // Note the approach used to automatically calculate the size of the array.
    Serial.println("0");
  }