def get_combinations(num):
    """
    Generate all True/False combinations for a given number

    :param num:
    :return:
    """
    temp = [True] * num
    combinations = []
    i = 0
    while i < 2 ** num:
        combinations.append(temp[::-1])
        for j in range(len(temp)):
            if temp[j] is True:
                temp[j] = False
                break
            else:
                temp[j] = True
        i += 1
    return combinations