This is a variation on this question.
I have a mapping between an address and a struct like this...
struct myStruct{
string name,
uint height
}
mapping (address=>myStruct) myMapping
if I access myMapping with an address key that hasn't been seen before, what gets returned?
e.g.
x = myMapping[unknownaddress];
What is in x?
I get a compile error if I compare to zero like this...
if (myMapping[unknownaddress] == 0){
...
}
Operator != not compatible with types struct MyStruct and int_const 0
Should I expect and "empty" or zeroed struct?
e.g.
x = myMapping[unknownaddress];
x.name = ""
x.height = 0