You can get the index of the first element which value is "false" from the list L.
[code][/code]a1 = true[br]a2 = false[br]a3 = true[br]a4 = true[br]a5 = true[br][br]L = {a1, a2, a3, a4, a5}[br][br]M = {1, 2, 3, 4, 5}[br][br]L_1 =Unique(RemoveUndefined( Zip(If(Element(L, n) ≟ false, IndexOf(Element(L, n), L)), n, M)))