I have a combobox and an input field. I'm trying to use an if function to give different outcomes depending on what gets entered and if they match or not.
//set input variables
Set(varSelectedIDOut, Text(searchCheckOut.Selected.ID));
Set(varInputIDOut, inputIDOut.Text);
If(
//error: both inputs blank
IsBlank(varSelectedIDOut) && IsBlank(varInputIDOut),
Notify("both empty");
//error: no name selected
IsBlank(varSelectedIDOut),
Notify("no name");
//error: no id input
IsBlank(varInputIDOut),
Notify("no id");
//error: selected name id and input id don't match
varSelectedIDOut <> varInputIDOut,
Notify("don't match");
//success
varSelectedIDOut = varInputIDOut,
Notify("yay");
);
Reset([@searchCheckOut]);
Everything is working except the no name error. Even though it does mark IsBlank(varSelectedIDOut) as true, it gives me the "don't match" notification instead of "no name". I cannot for the life of me figure out why.
Any help would be greatly appreciated!