If Construct in LISP
In this article, we will discuss the if construct in LISP. The if is a decision-making statement used to check whether the condition is right or wrong. The if the condition is right, then it will go inside the if block and execute the statements under if block. Otherwise, the statements are not executed.
(if (condition) then (statement 1).....(statement n))
Here, then is an optional keyword used inside the if statement.
Example 1: LISP Program to check conditions with operators
equal to 100 greater than 50 less than 150
greater than 50 less than 250