For some reasons Powerapps refused to accept my code with Switch like this:
Switch(
varButtonPressed,
"Trash_FileSaved",
<do something>,
"Trash_FileUploaded",
<do something>,
"Trash_AllFilesUploaded",
<do something>
)
The only way to make it work was the following:
Switch(
varButtonPressed,
"Trash_FileSaved",
<do something>;
"Trash_FileUploaded",
<do something>;
"Trash_AllFilesUploaded",
<do something>
)
By using ";" between options, not ",". I have never experienced this before.
The code actually works, but is this a normal syntax for the switch function?