i have ten lists where each of them is holding ten variables, all packed into one tree. the lists hold only boolean variables. now i want to reduce each of the ten main lists to only one boolean variable. the variable should be true if there is at least one 'true' stashed in the sublist. can somebody help me achieving this in gh?
Use 'SortList', which will convert booleans to 1s & 0s. Sorting will put all the 1s (trues) in the end. Then, either reverse the list and take only the first item, or take the last item of each list. If its 1, you know that list has a true, and if its 0, you know it has all false.