Choose where you’d like to start

Difference between isBlank(), isNull() and isEmpty() functions

The table below lists the (boolean) values that isBlank(), isNull(), isEmpty() functions return on various possible input values below.

InputOther ServicesCreator
isBlank()isNull()isEmpty()isBlank()isNull()isEmpty()

" "

(text containing only spaces)

truefalsetruetruefalsefalse

""

(empty text)

truetruenulltruetruetrue
nullfalsetruenulltruetruetrue

{}

(empty list)

truefalsetruetruefalsetrue

{" "}

(or)

{""}

(list values)

falsefalsefalsefalsefalsefalse

{" " : " "}

(or)

{"" : ""}

(map values)

falsefalsefalsenullnullfalse

Get Started Now

Execute