def Switch(node):
    """
Root of switch/case branch

Args:
    node (Switch): Current position in node-tree

Return:
    str : Translation of current node.

Children:
    Expression Case+ Otherwise?

    Expression:
        Test-expression
    Case:
        Case-block
    Otherwise:
        Otherwise-block

Examples:
    >>> print(matlab2cpp.qscript("a=1; switch a; case b; c; otherwise; d"))
    a = 1 ;
    if (b == a)
    {
      c ;
    }
    else
    {
      d ;
    }
    """
    if node[0].cls == "Var":
        out = ""

    # create switch variable
    else:
        node.type = node[0].type
        out = "%(type)s _var_%(type)s = %(0)s ;\n"
    return out + "\n".join(map(str, node[1:]))