I need to modify some json data returned from a DB. When the data is returned, I use an Assign to make the change. In my Assign, I have an "if/else" statement that compares the returned data with a string. If the statement is true, a desrialized jason string is returned. What always happens instead is that the value false is returned. But, its not the false part of the "if" statement that is returned, it seems that the comparison is what is failing (I think) . i say this because if I replace the true/false parts of the "If" statement with random strings, I still get false returned. The structures of the returned json data and the deserialized string are of different types, but the properties being compared are both strings. What am I missing? Here is what is in my Assign:
If(GetData.Response.mylist.Current.Role = "My Title", JSONDeserializerole_translations.Data.Fr.ExecutiveAdvocate, False )
Hi Lorenzo,
Are you comparing above expression over iterating the list 'GetData.Response.mylist'? If you are not doing it on iteration, the comparison will always work for the current record and you will always get the desensitization string as your result if the strings are matched.
Can you please share the screen shot of the above comparison.
Thanks,
Sachin
Sachin Mahawar wrote:
Here's a screen shot. I hope this is what you were looking for.
I think I found the problem. Its actually a typo in my translations. Thanks for the help though.
Good to hear that you have found the solution :)