HaveItem doesnt find table["index name"] , bug or a feature?
Posted: Tue Nov 10, 2020 10:53 am
example code:
it prints "1 is found" as expected, but unexpectedly (to me at least), it doesnt print "Movement Cost found".
Is this a bug or a feature?
And trying this with Hollywood 8 on Windows.
I can get around it with RawGet, but RawGet makes difference between capital and non capital letters if I correctly understood.
Code: Select all
testtable = {}
testtable["Movement Cost"] = 2
testtable[1] = 3
If HaveItem(testtable, 1) Then DebugPrint("1 is found")
If HaveItem(testtable, "Movement Cost") Then DebugPrint("Movement Cost found")
Is this a bug or a feature?
And trying this with Hollywood 8 on Windows.
I can get around it with RawGet, but RawGet makes difference between capital and non capital letters if I correctly understood.