Hello , did any find a solution how one can check a condition for multiple ContainsKey validation check.
Eg: I have a json to check marital status. So the json either will have one of the following set.
Single : true
Marrried : true
Divorced : true
Now these flags are set to true only if present, if there is no marital status set in form these fields are not present in the JSON.
So I need to combine a condition to check Jobject.containsKey(“Single”) or Jobject.containsKey(“Married”) or Jobject.containsKey(“Divorced”)
I am not able to combine all these conditions with OR or anything else.
Individual IF conditions do not help since IF 1st condition returns true , it goes go ahead to check other conditions and eventually return me a FALSE flag.