4.0. Conditional Expression - JulTob/Ada GitHub Wiki
Conditional Expression
Give a variable a value depending on conditions.
N := (if Bool then 0 else A);
N := (case X is
when A => 0,
when B => 10
when others => 100);
Give a variable a value depending on conditions.
N := (if Bool then 0 else A);
N := (case X is
when A => 0,
when B => 10
when others => 100);