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))