In C#, it’s just string.IsNullOrEmpty(), so in Power Platform it’s more complex:

It isn’t possible to compare against an empty string, so you need to compare the length of the string:

length(outputs('myString')?['body/Result'])

… and compare that with 0. The other condition just compares with null.

You could implement string.IsNullOrWhitespace() by using the trim() function around the string.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Quote of the era

In the beginning there was Jack … and Jack had a groove. And from this groove came the groove of all grooves. And while one day viciously throwing down on his box, Jack boldly declared “Let There Be House” and House music was born.

~ Chuck Roberts