please check this out:
Code: Select all
t={["One"]=1}
DebugPrint(HaveItem(t,"One"))
The thing is, HaveItem() probably converts its second argument to lowercase and cannot find a match if there is a match (and opposite):
Code: Select all
t={["one"]=1}
DebugPrint(HaveItem(t,"One"))
The same apply to the other constructor of the table (t={one=1}) - in this case HaveItem(t,"one") and HaveItem(t,"One") will show 1
Maybe there should be a remark in docs ? It took me whole day to find out where the problem is.
RawGet() works correctly here.