I'm trying to check if a user is in table and if not post an error message
This is the code but if user is not in table it still says recognized when it should say unknown
UserCollection user = new UserCollection();
IPredicateExpression selectFilter = new PredicateExpression();
selectFilter.Add(PredicateFactory.CompareValue(UserFieldIndex.Email, ComparisonOperator.Equal, __LoginField.Text));
user.GetMulti(selectFilter);
if (user == null)
{
__Msg.Text = "Unknown email address \"" + __LoginField.Text + "\".";
}
else
{
__Msg.Text = "Recognized email address \"" + __LoginField.Text + "\".";
}
else