Get a value based on the boolean value b.
If b is true, then return a1. If :bool:`b is false, then return a2.
- Returns:
a - either a1 or a2.
- Arguments:
b - Value that determines if a1 or a2 is chosen.
a1 - Value returned if b is true.
a2 - Value returned if b is false.