Array.has() returning false when it is clearly there

Godot Version

4.4.stable

Question

In my code, I have an Array with a bunch of Strings in it.

if Global.cemetery.has(temp_name): my_function()

When cemetery = ["NAME"] and temp_name = "NAME", my function doesn’t run. I tried converting it to a String just to make sure that wasn’t the issue, but it was already a String so that can’t be it. Any idea what’s up?

Can you share a larger portion of your code?

Post the actual code.

Whoops :expressionless: after staring at it for another while I found my own error in another section of the code. Thank you anyways!