I hope this isn't a silly question. I've looked at " If and Switch functions - Power Platform | Microsoft Learn"
I'm checking to make sure each box on my canvas has been filled in before patching.
Am I doing this right? check each condition, then group the DefaultResult inside parenthesis? I know the syntax is not precisely correct, but I am hoping it is clear enough. I am focusing on how to do the Default result, when the multiple set statements need to be separated with a comma, but they are not meant to be additional conditions.
If(
(TextInput1_1.Text ="Text input"), (Set(TextCanvasvar1,"No Input 1")),
(TextInput1_2.Text="Text input"), (Set(TextCanvasvar2,"No Input 2")),
(TextInput1_3.Text="Text input"), (Set(TextCanvasvar3,"No Input 3")),
//default
(Set(TextCanvasvar1,"default1"),
Set(TextCanvasvar2,"default2"),
Set(TextCanvasvar3,"default3")
) //end default
); // end if
I've tested it. power apps definitely does not like my default steps.
any thoughts?