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