My intention is if both variables empty then the flow should stop but what I use above code it is only seeing the subject it is not going to the body like it not look the body is empty are not its look only subject what to do can anyone explain
Try rewriting the condition like this:
Not String.IsNullOrEmpty(Subject) andAlso Not string.IsNullOrEmpty(DocBody)
Then it will work I hope so.
Hope its helps.
Thanks!!!
No buddy it’s not working see the bellow screenshot the doc is null but it takes the data I give subject as testing its a value in the subject variable but it was looking only at the subject if the subject has value mnz it takes to the then value
Thanks for responding @copy_writes .
Please give one more try with this:
Not string.IsNullOrWhiteSpace(Subject) andAlso not Not string.IsNullOrWhiteSpace(DocBody)
IsNullOrWhiteSpace() method for strings which generalizes the IsNullOrEmpty() method to also include other white space besides empty string.