def get_GET_bool(request, var_name, default=True):
val = request.GET.get(var_name, default)<EOL>if isinstance(val, str) or isinstance(val, str):<EOL><INDENT>val = True if val[<NUM_LIT:0>] == '<STR_LIT:t>' else False<EOL><DEDENT>return val<EOL>
Tries to extract a boolean variable from the specified request.