Hey, I got this variable that never is really null. I ran problems with setting it as null but now it is harder to check if it is default value or not:
var item = Resource
so thats the variable, and in code I can put a item.tres as the resource
but, if the item has not been set this condition always passes:
if item == Resource:
how can I check if the variable is default resource so it does not pass? Kinda like if item == null?
I have used
if variable in item:
to make sure its not the default one, but feels sketchy. sometimes the item might not have that variable