if...else if not working

Hi,
Can anybody tell me, what am I doing wrong that my code isn't working as expected?
I am trying to build an ESP8266 LED Matrix clock. I have modified some example code and it worked. Then I added a few new lines of code and it doesn't work anymore. The problem is in this part. I took it off the whole code and created a now skech, just to see, if it works or not. It doesn't. And I cannot figure out why.

/ Global variables
int meno_poradie;
int text_poradie;
int vek_jubilanta;
int aky_sviatok;
int rok_narodenia;

bool text_zobrazit = false;
bool sviatok_zobrazit = false;
int interval_1 = 1; //v akom intervale sa bude zobrazovat kto ma sviatok a aky sviatok
int LDR_Value; // variable to store the value coming from the LDR sensor

int dd = 24;   //day of month 1-31
int mm = 1;    //month 1-12

void getAkySviatok(char *psz)
{
  //char  szBuf[30];


  if (mm == 1 && dd == 24)   //Babka narodeniny
  { aky_sviatok = 2;
    meno_poradie = 1;
    rok_narodenia = 1943;
    text_zobrazit = true;
    text_poradie = 0;
  }
  else if (mm == 1 && dd == 25)   //Babka narodeniny
  { aky_sviatok = 4;
    meno_poradie = 1;
    rok_narodenia = 1943;
    text_zobrazit = true;
    text_poradie = 0;
  }
  else  if (mm == 2 && dd == 1)   //Ina meniny
  { aky_sviatok = 1;
    meno_poradie = 8;
    text_zobrazit = true;
    text_poradie = 0;
  }
  else  if (mm == 7 && dd == 2)   //Jakub meniny
  { aky_sviatok = 3;
    meno_poradie = 8;
    text_zobrazit = true;
    text_poradie = 0;
  }
}


void setup(void)
{
  Serial.begin(9600);
}

void loop(void)
{
  Serial.print ("Datum= ");
  Serial.print (dd);
  Serial.print (".");
  Serial.print (mm);
  Serial.print (".");
  Serial.print (" Aky sviatok= ");
  Serial.print (aky_sviatok);
  Serial.print (" Meno poradie= ");
  Serial.print (meno_poradie);
  Serial.print (" Rok narodenia= ");
  Serial.println (rok_narodenia);
  delay (5000);
}

When I set dd = 24 and mm = 1 then I expect serial monitor to output

aky_sviatok = 2;
meno_poradie = 1;
rok_narodenia = 1943;

but instead I got 0 and 0 and 0. The same when I change those 2 variables to any of the rest combinations in if..else if

What am I doing wrong?

You don't call your fancy function.

Yes, you are right, Whandall.
I moved it inside loop function and it works. I thought it is some elementary mistake.

Thank you very much.