You are here

One Choice -Implied Two Way Selection

6 February, 2015 - 14:37

Often the programmer will want to do something only if the expression is true, that is with no false action. The lack of a false action is also referred to as a "null else" and would be written as:

if expression   action true else   do nothing

Because the "else do nothing" is implied, it is usually written in short form like:

if expression   action true