I ran into this problem while attempting the Academy lesson on Data Manipulation. I downloaded the solution and copied it exactly, step by step. Am I doing something wrong?
Flowchart starts and asks for input dialogue.
Input dialogue result is stored in a string variable called InputVariable.
That string variable is in a flow decision condition written as: InputVariable is Nothing.
If true, it should loop back to the input dialogue and prompt user for input again.
It doesn’t matter if the input is blank, or filled with text, it will always return “False” regardless.
I understand that I can use String.IsNullOrEmpty(InputVariable) and that works as expected. But I was trying to follow the solution to the exercise and I would like to understand where I went wrong. The downloaded solution works flawlessly, while mine does not and I copied it exactly.
I would appreciate any feedback on this and have attached my xaml file if someone can please help me Main.xaml (8.2 KB)
when you leave blank your input dialog activity, it will get a value now, that value is empty but not null, so the flow decisition will be always false becase the value is empty, not null
Thank you so very much for explaining this to me! I really do appreciate it. I definitely better understand the logic behind this now! I just couldn’t understand how the Academy solution used the condition “is nothing” and it worked lol
That was so kind of you to explain this to me in such detail and I’m extremely grateful!