![]() |
VOOZH | about |
In this article, we will discuss the when construct. The when is a decision-making statement used to specify the decisions. It is similar to conditional statements.
Syntax:
(when (condition) (statements) )
where,
Example 1: LISP Program to check the number is equal to 50 or not
Output:
Equal to 50
Example 2: LISP Program to check the given number with comparison operators
Output:
Equal to 50 greater than or Equal to 50 less than or Equal to 50