The code just keeps accepting input and doesn't go on to the if logic and i have no idea why
    while (1){
    // get command
    char cmd[6];
    scanf("%s", cmd);
    if (cmd == "exit"){
        return 0;
    } else if(cmd == "task\n"){
        taskHandler();
    } else if(cmd == "event"){
        eventHandler();
    } else if(cmd == "show"){
        showItems();
    }
}
 
     
    