Shouldn't the existence of data return a "true" in this case?
-
My impression is that this should return "true":
const var Panel1 = Content.addPanel("Panel1",0,0); Panel1.data.text = "TEST"; Console.print(Panel1.data.text ? "true" : "false");
I thought the existence of some data returns a 1 or true.
Is that not the case? -
@VirtualVirgin Looks correct to me, we could reduce it to this
Console.print("TEST" == 1); //0
If you want to know if a value exists you could use
isDefined()
or for text specifically you can use!= ""