Activity Forums Salesforce® Discussions How to check a String is null or empty or blank using Apex in Salesforce?

  • Marziya

    Member
    June 5, 2020 at 2:36 pm

    A)IsBlank – It Returns true if the specified String is white space, empty (”) or null, otherwise it returns false.
    B)IsNotBlank – It Returns true if the specified String is not white space, not empty (”) and not null, otherwise it returns false.

  • Ratnesh

    Member
    June 8, 2020 at 6:11 am

    Main Difference Between ISBLANK And ISNULL in Salesforce. ISBLANK determines if an expression has a value then returns TRUE if it does not. ... ISNULL determines if an expression is null (blank) then returns TRUE if it is. If the expression contains a value, then this function returns FALSE.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos