int a = 1;

if (a < 1) {
    // do something
} else if (a == 1) {
    // do something
} else {
    // do something
}

// single line expression
(a < 1) ? "a is smaller" : "a is not smaller";      // a is not smaller

/*
    Michael Sjoeberg
    2019-08-19
    https://github.com/michaelsjoeberg/c-playground/blob/master/basics/if-else.c
*/