def if_node(clauses, else_block, context):
    """A node that implements an 'if' expression."""
    for evaluate, block in clauses:
        if evaluate(context):
            block._render_to_context(context)
            return
    if else_block:
        else_block._render_to_context(context)
