vendredi 30 avril 2021

Is there a nested if in lisp?

(if (> 10 5)
    (format t "First number is greater ~%"))
    
    (if (> 10 15) 
        (format t "First number is greater ~%")
        (format t "Second number is greater ~%"))
        
        (if (= 10 10)
        (format t "Both numbers are equal"))

Aucun commentaire:

Enregistrer un commentaire