Code: Select all
Local indextab = CreateList()
Local p = ToNumber(mui.get(mymuiid,"active"))
If(HaveItem(indextab,p) = False)
InsertItem(indextab,p,p)
DebugPrint("Inserted!")
Else()
...
That check above should work for my case, but fails when the loop comes around with the same value again?
Is there a function to check contents and not the index?