In this example I am using nested if else inside the else block of our one liner. The first syntax is a simple one-line IF THEN ELSE statement where you don’t need to use the END IF statement. Conditional expressions (sometimes called a “ternary operator”) have the lowest priority of all Python operations. One, if the expression is evaluated as true. : is called a ternary operator and acts just like an if / else when used in an expression Examples of the single line if statement JavaScript Ternary operator (Conditional operator) Sample Code