def Choose(Decision,TrueChoice,FalseChoice):
    """
    Ternary IIF operator, returns TrueChoice or FalseChoice based on
    Decision.
    
    This function is handy for use inside Curly Brace Expressions (CBE's).
    Decision must evaluate to true or false (0 or 1, empty or full, etc).
    If TRUE then TrueChoice will be returned, else FalseChoice will be
    returned.
    """

    if Decision:
        return TrueChoice
    else:
        return FalseChoice