How is this accomplished? Now that the advanced editor is missing from Conditions, I don't know how to check to see if a string is empty!
Previously I'd do something like @{empty(variables('varName'))} in the condition.
Solved! Go to Solution.
you can use null in a express on the right side
or
use length(var) on the left is greater than 0.
Hi @ericonline
Did you tried using the length expression?
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @ericonline
You can still use the old expression @{empty(variables('varName'))}
just this time becuase its being used in a condition
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
you can use null in a express on the right side
or
use length(var) on the left is greater than 0.
Hi @ericonline
Did you tried using the length expression?
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @ericonline
You can still use the old expression @{empty(variables('varName'))}
just this time becuase its being used in a condition
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
I've tried @RezaDorrani 's solution and it worked. I'll mark all three of your suggestions as a solution as I'm sure they also work.
Thank you very much!
No, you can't use a null expression with a string variable. A condition that checks if a string variable is not null will always come true, because it's not null, it's an empty string. Use empty or length.
User | Count |
---|---|
95 | |
46 | |
21 | |
18 | |
17 |
User | Count |
---|---|
141 | |
50 | |
43 | |
40 | |
29 |