While working with objects, I am trying to compare one field of a queried object to the current user using the app
I was using an IF loop
if( ParseUser.CurrentUser() == object.getString("User"))
{
Do this
}
However, ParseUser.CurrentUser
does not return in string format. So I declared a varible and tried that
String parseUser = ParseUser.CurrentUser.toString();
However, the string contains a completely different value then what the parse user for that particular user is called on the Parse server. Does something different happen on the server? Is there a correct way to return the ParseUser.CurrentUser
in a string form?