Below is the query I have used :-
User singleUser= [SELECT id,name,alias FROM user WHERE alias = 'random' AND name = 'Random Name' LIMIT 1];
In the IF condition I want to check for the null condition for this SOQL query...like if this query has returned an empty result or not. How can i do that?
I have tried to put
system.debug('size ============= ' + singleUser.isblank()); system.debug('size ============= ' + singleUser.isempty());
But it throws me the error :-
Method does not exist or incorrect signature: void isblank() from the type User