Jinja Ternary operator
Short form of an if … else condition is the ternary operator, it is known as a conditional operator as well. It simply allows testing a condition in a single line replacing the multiline if … else, so it makes the code compact.
Objectives
-
Ternary operator syntax and examples