Ada 2012 conditional expressions
public text v1 · immutablefor J in 1 .. 3 loop
Put_Line ((if J = 1 then "one"
elsif J = 2 then "two"
else "three"));
end loop;
for J in Boolean loop
B := F (if J then "A" else "B", if not J then "A" else "B");
end loop;