Example sketch IRremote ReceiveDump not working

One thing I still want to ask (sorry). I am now trying to make it so I can send one specific matrix only by changing a variable (so if my variable command is equal to 1, then it will send the channel 1 matrix). However, for some reason my if statements seem to do nothing. They all end up running, even though command=10. I tried printing the command to see what it is, with this line:

Serial.println("the command is" + command); 

But for some reason it returns this in the serial monitor:
d is

This is the part of my code I am refering to (command was declared in the for loop):

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");

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

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

This is the complete code of the sender which worked:


#include <Arduino.h>

#if !defined(ARDUINO_ESP32C3_DEV) // This is due to a bug in RISC-V compiler, which requires unused function sections :-(.
#define DISABLE_CODE_FOR_RECEIVER // Disables static receiver code like receive timer ISR handler and static IRReceiver and irparams data. Saves 450 bytes program memory and 269 bytes RAM if receiving functions are not required.
#endif

//#define SEND_PWM_BY_TIMER         // Disable carrier PWM generation in software and use (restricted) hardware PWM.
//#define USE_NO_SEND_PWM           // Use no carrier PWM, just simulate an active low receiver signal. Overrides SEND_PWM_BY_TIMER definition
//#define NO_LED_FEEDBACK_CODE      // Saves 566 bytes program memory
//#define USE_OPEN_DRAIN_OUTPUT_FOR_SEND_PIN // Use or simulate open drain output mode at send pin. Attention, active state of open drain is LOW, so connect the send LED between positive supply and send pin!

#include "PinDefinitionsAndMore.h" // Define macros for input and output pin etc.
#include <IRremote.hpp>

/*
0 = ch0
1 = ch1
2 = ch1
3 = ch1
4 = ch1
4 = ch1
6 = ch1
7 = ch1
8 = ch1
9 = ch1
10 = pow
*/

void setup() {
    pinMode(LED_BUILTIN, OUTPUT);

    Serial.begin(115200);
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_PORT_USBVIRTUAL) || defined(SERIAL_USB) /*stm32duino*/|| defined(USBCON) /*STM32_stm32*/|| defined(SERIALUSB_PID) || defined(ARDUINO_attiny3217)
    delay(4000); // To be able to connect Serial monitor after reset or power up and before first print out. Do not wait for an attached Serial Monitor!
#endif
    // Just to know which program is running on my Arduino
    Serial.println(F("START " __FILE__ " from " __DATE__ "\r\nUsing library version " VERSION_IRREMOTE));
    Serial.println(F("Send IR signals at pin " STR(IR_SEND_PIN)));

    IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin
}

/*
 * NEC address=0xFB0C, command=0x18
 *
 * This is data in byte format.
 * The uint8_t/byte elements contain the number of ticks in 50 us.
 * The uint16_t format contains the (number of ticks * 50) if generated by IRremote,
 * so the uint16_t format has exact the same resolution but requires double space.
 * With the uint16_t format, you are able to modify the timings to meet the standards,
 * e.g. use 560 (instead of 11 * 50) for NEC or use 432 for Panasonic. But in this cases,
 * you better use the timing generation functions e.g. sendNEC() directly.
 */
const uint8_t rawDataP[]
#if defined(__AVR__)
PROGMEM
#endif
= { 180, 90 /*Start bit*/, 11, 11, 11, 11, 11, 34, 11, 34/*0011 0xC of 16 bit address LSB first*/, 11, 11, 11, 11, 11, 11, 11,
        11/*0000*/, 11, 34, 11, 34, 11, 11, 11, 34/*1101 0xB*/, 11, 34, 11, 34, 11, 34, 11, 34/*1111*/, 11, 11, 11, 11, 11, 11, 11,
        34/*0001 0x08 of command LSB first*/, 11, 34, 11, 11, 11, 11, 11, 11/*1000 0x01*/, 11, 34, 11, 34, 11, 34, 11,
        11/*1110 Inverted 8 of command*/, 11, 11, 11, 34, 11, 34, 11, 34/*0111 inverted 1 of command*/, 11 /*stop bit*/};

void loop() {

#if !(defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__))
    /*
     * Send hand crafted data from RAM
     * The values are NOT multiple of 50, but are taken from the NEC timing definitions
     */
    Serial.println(F("Send NEC 16 bit address=0xFB04 and command 0x08 with exact timing (16 bit array format)"));
    Serial.flush();

  const int command=10;

  const uint16_t ch0[] = {3350,  3347,   841,  2530,   840,  2531,   839,   839,
  840,  2530,   839,  2530,   841,  2529,   840,   839,
  841,   838,   841,  2529,   841,  2529,   840,   839,
  840,   839,   840,   839,   841,  2530,   840,   839,
  840,   838,   841,   838,   841,  2530,   840,  2529,
  840,   839,   841,   839,   839,  2531,   839, 37461,
 3350,  3350,   840,  2529,   840,  2529,   841,   839,
  840,  2531,   839,  2529,   841,  2529,   840,   839,
  840,   839,   841,  2529,   841,  2529,   840,   839,
  840,   839,   841,   838,   841,  2529,   841,   838,
  841,   838,   841,   838,   841,  2529,   840,  2530,
  840,   838,   842,   838,   841,  2529,   840}; // Using exact NEC timing  

  const uint16_t ch1[] = {3349,  3348,   841,  2529,   841,  2529,   840,   840,
  839,  2529,   841,  2529,   841,   839,   840,   839,
  841,   839,   839,   839,   841,  2530,   840,   839,
  840,   839,   840,   839,   840,  2530,   840,   839,
  840,   839,   840,  2530,   840,  2530,   840,  2531,
  839,  2530,   854,   825,   840,  2530,   839, 37463,
 3350,  3349,   840,  2530,   840,  2531,   839,   838,
  841,  2530,   839,  2531,   840,   838,   840,   839,
  841,   839,   864,   815,   840,  2531,   838,   841,
  839,   840,   840,   839,   839,  2530,   840,   839,
  840,   840,   839,  2531,   839,  2531,   840,  2530,
  839,  2531,   839,   840,   839,  2530,   840}; // Using exact NEC timing

  const uint16_t ch2[] = {3349,  3349,   841,  2528,   842,  2530,   840,   839,
  841,  2530,   840,  2530,   840,  2530,   840,   839,
  841,   838,   841,   839,   841,  2530,   840,   838,
  841,   839,   840,   839,   841,  2530,   840,   839,
  841,   838,   841,   839,   841,  2530,   840,  2530,
  840,  2530,   840,   839,   841,  2530,   840, 37466,
 3351,  3350,   840,  2530,   840,  2531,   840,   839,
  840,  2529,   841,  2531,   840,  2529,   841,   839,
  840,   839,   841,   838,   841,  2530,   841,   843,
  836,   838,   841,   844,   835,  2531,   839,   845,
  836,   838,   841,   843,   836,  2531,   839,  2532,
  839,  2530,   840,   844,   836,  2529,   841}; // Using exact NEC timing  

  const uint16_t ch3[] = {3350,  3347,   842,  2529,   841,  2530,   840,   838,
  841,  2529,   841,  2530,   839,   840,   840,  2529,
  841,   838,   841,   839,   840,  2530,   841,   838,
  840,   839,   840,   839,   841,  2528,   842,   838,
  841,   839,   840,  2531,   839,   839,   840,  2530,
  840,  2529,   841,   839,   840,  2530,   840, 37464,
 3349,  3348,   841,  2530,   840,  2529,   841,   839,
  840,  2530,   840,  2530,   840,   838,   841,  2530,
  840,   839,   842,   842,   836,  2529,   840,   839,
  841,   838,   841,   839,   840,  2530,   840,   843,
  836,   844,   835,  2529,   841,   844,   835,  2530,
  840,  2531,   839,   844,   835,  2530,   840}; // Using exact NEC timing

  const uint16_t ch4[] = {3373,  3325,   839,  2530,   890,   138,   203,  2146,
  839,   838,   842,  2529,   840,  2531,   840,  2529,
  840,  2530,   840,   839,   852,   826,   841,  2531,
  839,   840,   840,   839,   839,   839,   841,  2530,
  840,   838,   866,   813,   841,   839,   841,   838,
  865,  2507,   839,  2530,   864,   814,   943,  2428,
  839, 37462,  3351,  3348,   840,  2530,   840,  2530,
  840,   838,   842,  2530,   839,  2530,   840,  2530,
  840,  2530,   839,   839,   842,   838,   840,  2530,
  840,   840,   840,   838,   841,   838,   841,  2530,
  840,   838,   841,   839,   841,   838,   841,   837,
  841,  2531,   840,  2528,   842,   838,   840,  2530,
  841}; // Using exact NEC timing  

  const uint16_t ch5[] = {3349,  3349,   840,  2529,   841,  2530,   840,   838,
  841,  2530,   840,  2530,   840,   838,   841,   839,
  840,  2531,   839,   838,   841,  2532,   838,   838,
  841,   839,   840,   839,   841,  2530,   840,   838,
  841,   838,   841,  2529,   840,  2531,   840,   838,
  841,  2529,   840,   839,   841,  2530,   839, 37462,
 3350,  3349,   840,  2529,   841,  2529,   841,   838,
  841,  2528,   842,  2530,   840,   838,   841,   838,
  841,  2529,   841,   838,   841,  2530,   839,   839,
  841,   839,   840,   839,   844,  2526,   841,   838,
  840,   839,   841,  2529,   840,  2531,   839,   839,
  841,  2529,   840,   839,   840,  2530,   840}; // Using exact NEC timing

  const uint16_t ch6[] = {3350,  3350,   839,  2530,   841,  2530,   840,   839,
  840,  2531,   839,  2531,   840,  2530,   840,   838,
  841,  2531,   839,   839,   840,  2530,   841,   838,
  841,   839,   840,   839,   841,  2531,   840,   838,
  841,   838,   841,   839,   841,  2529,   840,   839,
  841,  2529,   841,   839,   841,  2529,   841, 37465,
 3351,  3350,   839,  2530,   840,  2531,   840,   838,
  841,  2530,   840,  2531,   839,  2531,   840,   838,
  841,  2530,   840,   839,   840,  2530,   841,   838,
  841,   839,   841,   838,   841,  2530,   840,   839,
  840,   839,   841,   839,   840,  2530,   841,   838,
  841,  2530,   839,   840,   841,  2529,   841}; // Using exact NEC timing  

  const uint16_t ch7[] = {3350,  3349,   841,  2531,   839,  2530,   840,   839,
  840,  2531,   839,  2530,   841,   838,   841,  2530,
  840,  2530,   839,   839,   842,  2528,   842,   839,
  840,   839,   841,   838,   841,  2531,   839,   838,
  842,   838,   841,  2530,   840,   838,   842,   838,
  841,  2530,   840,   838,   842,  2530,   839, 37465,
 3351,  3349,   841,  2529,   841,  2529,   840,   838,
  842,  2529,   841,  2530,   840,   839,   841,  2530,
  839,  2531,   840,   839,   840,  2530,   840,   839,
  840,   839,   841,   838,   841,  2530,   840,   839,
  841,   839,   840,  2530,   840,   838,   842,   839,
  839,  2531,   840,   839,   840,  2530,   839}; // Using exact NEC timing

  const uint16_t ch8[] = {3351,  3349,   839,  2531,   839,  2530,   841,   838,
  841,  2530,   840,  2530,   840,  2530,   840,  2531,
  839,  2530,   839,   840,   840,  2529,   841,   839,
  841,   838,   841,   839,   840,  2530,   840,   839,
  840,   839,   841,   838,   841,   839,   841,   838,
  841,  2529,   840,   839,   840,  2530,   840, 37463,
 3350,  3349,   840,  2530,   840,  2529,   842,   843,
  835,  2530,   841,  2530,   839,  2530,   841,  2529,
  840,  2530,   841,   838,   841,  2529,   840,   839,
  841,   839,   840,   839,   841,  2529,   841,   837,
  842,   838,   841,   838,   842,   838,   840,   839,
  841,  2529,   841,   838,   842,  2534,   835}; // Using exact NEC timing  

  const uint16_t ch9[] = {3351,  3348,   840,  2531,   839,  2530,   840,   839,
  841,  2529,   840,  2530,   840,   838,   841,   839,
  841,   838,   840,  2530,   841,  2530,   840,   837,
  841,   839,   841,   838,   841,  2529,   841,   838,
  841,   838,   841,  2530,   840,  2529,   841,  2530,
  840,   838,   841,   838,   841,  2530,   840, 37461,
 3351,  3347,   841,  2529,   842,  2529,   839,   839,
  840,  2531,   839,  2530,   841,   838,   841,   838,
  841,   838,   842,  2529,   840,  2530,   840,   838,
  841,   838,   841,   839,   840,  2531,   839,   839,
  840,   840,   839,  2530,   841,  2529,   840,  2530,
  840,   838,   841,   839,   840,  2529,   841}; // Using exact NEC timing

  const uint16_t pow[] = {2392,   602,  1197,   601,   600,   602,  1221,   578,
    600,   601,  1197,   602,   600,   601,   608,   593,
    1198,   601,   624,   577,   600,   602,   600,   601,
    599, 25708,  2393,   601,  1197,   601,   600,   602,
    1198,   602,   599,   601,  1197,   602,   600,   602,
    600,   601,  1198,   601,   600,   601,   600,   601,
    600,   601,   600, 25713,  2391,   602,  1198,   601,
    601,   601,  1197,   601,   600,   602,  1197,   602,
    599,   602,   599,   603,  1196,   602,   600,   602,
    599,   601,   600,   602,   599, 25705,  2391,   603,
    1197,   602,   599,   602,  1196,   603,   599,   602,
    1195,   603,   598,   605,   596,   605,  1194,   605,
    595,   606,   597,   604,   597,   605,   595}; // Using exact NEC timing

  Serial.println("the command is" + command);
  
  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");

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

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

    delay(1000); // delay must be greater than 5 ms (RECORD_GAP_MICROS), otherwise the receiver sees it as one long signal
#endif
    /*
     * Send byte data direct from FLASH
     * Note the approach used to automatically calculate the size of the array.
     
    Serial.println(F("Send NEC 16 bit address 0xFB0C and data 0x18 with (50 us) tick resolution timing (8 bit array format) "));
    Serial.flush();
    IrSender.sendRaw_P(rawDataP, sizeof(rawDataP) / sizeof(rawDataP[0]), NEC_KHZ);

    delay(1000); // delay must be greater than 5 ms (RECORD_GAP_MICROS), otherwise the receiver sees it as one long signal

    Serial.println(F("Send NEC 16 bit address 0x0102, 8 bit data 0x34 with generated timing"));
    Serial.flush();
    IrSender.sendNEC(0x0102, 0x34, 0);
*/
    delay(5000);
}

Thanks again for the help