If in the "else" block you don’t have to do anything (for example: “if there is ice cream on sale, buy ice cream”, and if not ...), then the entire block “otherwise” you can omit and use an abbreviated (incomplete) form of the conditional operator:
if ( condition )
{
... // what to do if the condition is true
}
Let's consider an example of solving the problem of finding the maximum of two numbers using an incomplete form of the conditional operator.