How to check whether the string is empty or null?

0
Hi all I have a string property tagged to a text box in UI. I want to check whether user has entered some text or not in a condition. I tried like string = empty or null but both of the cases it is is not recognizing Please help me in it
asked
3 answers
3

Roger,

If this is an entity attribute of type string, you can check the following:

$EntityName/Attribute = empty   this checks to see if a string is null

$EntityName/Attribute = ‘’   this checks to see if it is an empty string

Hope that helps,

Mike

answered
1

Hi Roger,

As Mike suggested, you can use the following condition to validate the String whether it is empty or null. 

To check both at a time in a single exclusive split, use the same condition like below

$EntityName/Attribute = empty  or $EntityName/Attribute = ‘’   

answered
0

You could also use the community commons IsEmptyString or IsNotEmptyString actions. Sometimes easier then doing the above checks.

Regards,

Ronald

 

answered