If then else issue
Hi,
I am having issues with an if, then , else statement. Basically, I want to check a variable and set then set another variable but go no further if the check is true. For some reason, though, it is going and completing the code to the end (after the ;) I am thinking I am just structuring the statement incorrectly and have a close bracket in the wrong place, but I have tried so many different variations that I am now stuck. Code below and thanks in advance for any advice
If(varAC="CGL", Set(gblShowModalProdMove,true),
If(varAC="WS Wrapper",Set(gblShowModalProdMove,true),
Patch(
'FLT Requests',
Defaults('FLT Requests'),
{
JobType: "Finished Product Move",
Location:"WS",
TruckType:"Combi",
ActivityCentre: varAC,
Priority:2,
Allocated: false,
Completed: false
}
));
Navigate(scrSuccess, ScreenTransition.Fade))
0
7 comments
Steve Garbett
4
If then else issue
Learn Power Apps
skool.com/learn-power-apps
A community of people who are enthusiastic about and trying to learn about Microsoft's Power Apps!
Leaderboard (30-day)
Powered by