I've added a Two Option field to a Form and now I'm reading back the value.
This is what I'm trying in order to read back the attribute value, first checking that the field exists them attempting a cast to bool. But there is a syntax error on the line where I try to get the attribute value - "(bool)contact.Attributes"
bool feeDeleted = contact.Attributes.ContainsKey("vs_feedeleted") ? (bool)contact.Attributes["vs_feedeleted"]
Does anyone know how to cast the Two Option field's value to a bool type in C#?

*This post is locked for comments
I have the same question (0)