empty fields

Hi, I can a Textfield, how I can to check if this field is empty?. Thanks!.

if ( “textfield is empty” )
{
}

Something like that

textfield.getValue().isEmpty()

Thank you dooka!

Beware of NullPointer when textfield.getValue() is null!
That might be the case if you write textfield.setNullRepresentation(“”).