How to put a condition when a string is not empty in Do While

Hi
I want to execute a Do-while loop when a string is NOT empty. What should I state for the condition?
I only know how to test if a string is empty:

String.IsNullOrEmpty(Item.ToString)

Thank you!

1 Like

StringVariable.trim <> “”
you can try this @Anonymous2

1 Like

@Anonymous2
not String.IsNullOrEmpty(Item.ToString)

2 Likes

String<>Nothing
String<>“”
Not String.IsNullOrEmpty(String)
Not String.IsNullOrWhitespace(String)

2 Likes

You can also use while string.Length >0.
@Anonymous2
I hope this helps. :grin:

IF (Not String.IsNullOrEmpty(Item))
Just lose that .ToString, because you get an exception if it is null :wink:

3 Likes