---
title: "Discussion on \"cond - многовариантное условие\" | Hashnode"
description: "Discussion on \"cond - многовариантное условие\". (cond ('any1 . prg1) ('any2 . prg2) ..) -> any\nЕсли любое из условий anyN не равно NIL, выполняется prgN и возвращается результат. В противном случае (все условия равны NIL) возвращается NIL.\nСм. также nond when and if if2\nПример\n: (cond\n   ((= 3 4) ..."
url: "https://hashnode.com/posts/cond-mnogovariantnoe-uslovie/6870beb0c5b09b36f38faa53"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [cond - многовариантное условие](https://serj-aleks.hashnode.dev/cond-mnogovariantnoe-uslovie?utm_source=hashnode&utm_medium=feed)

(cond ('any1 . prg1) ('any2 . prg2) ..) -> any Если любое из условий anyN не равно NIL, выполняется prgN и возвращается результат. В противном случае (все условия равны NIL) возвращается NIL. См. также nond when and if if2 Пример : (cond ((= 3 4) ...

Jul 11, 2025 · 2 min read · serj-aleks.hashnode.dev  
Read the article

-   [#picolisp](https://hashnode.com/tag/picolisp)
-   [#cond](https://hashnode.com/tag/cond)
-   [#conditional-statement](https://hashnode.com/tag/conditional-statement)
-   [#conditionals](https://hashnode.com/tag/conditionals)
-   [#case](https://hashnode.com/tag/case)

## Written by

[Sergey Shishkin](https://hashnode.com/@Serj-Aleks)

@Serj-Aleks · Wuppertal, NRW

  
[View profile](https://hashnode.com/@Serj-Aleks)

abrakadabra

Всегда чему-то учусь!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
