Writing Conditional Expressions in the Genus Application Framework Language

Product 24/09/2013 by Jan Petter Bergfjord

The if-then-else construct introduced to support writing conditional expressions.
 
Syntax:
 
   if <boolean-expr> then <expr-1> else <expr-2>
 
where each <expr> can be another if, such as:
 
   if person.age < 13 then
      “child”
   else if person.age < 18 then
      “teenager”
   else
      “adult”