(rontolisp) docs
← Syntax and definition

condp

(condp pred expr clause... default?)

Evaluates pred and expr once, then tries each clause in order by calling (pred test expr) with the clause's test, and answers the result of the first clause whose call is truthy. A clause is test result, or test :>> f, which answers f called with the predicate's answer. A lone trailing form is the default. Without one, no truthy clause throws IllegalArgumentException No matching clause: <expr>.