View Problem

Perform different actions depending on several boolean conditions (IF .. THEN .. ELSIF .. ELSE)

ExpandDiskEdit
php
echo "You are " . (($age > 84) ? "really ancient" : (($age > 30) ? "middle-aged" : "young"));
ExpandDiskEdit
php
$response = "You are ";
if ($age > 84) {
$response .= "really ancient";
} else if ($age > 30) {
$response .= "middle-aged";
} else {
$response .= "young";
}
echo $response;
DiskEdit
clojure
(println
(condp <= age
84 "You are really ancient"
30 "You are middle aged"
"You are young"))

Submit a new solution for php or clojure
There are 19 other solutions in additional languages (cpp, csharp, erlang, fantom ...)