Checking whether a certain unique value has been assigned to a struct member variable

Thank you, was able to get it done