titus.genpy.condElse

titus.genpy.condElse(state, scope, ifThens, elseClause)[source]

Helper function for constructing if-elif-elif-...-elif as an expression.

Parameters:
Return type:

return type of any thenClause or the elseClause

Returns:

if any predicate returns True, the result of the corresponding thenClause, else the result of elseClause