I am trying to set the colour of items in a gallery based on a click of a button that navigates me along the 4 different tabs.

Essentially when I'm on the 'Claim' tab, the circle should be Yellow and when I navigate to the 'Argument' tab, the 'Claim' circle should change to Green and the 'Arguement' circle should change to Yellow and so on whilst all the other circles stay grey.
I've tried the below but that doesn't seem to work:
If(varCurrentTab=1 & Label3 = "Claim",clTheme.clYellow,clTheme.clMidGrey,
If(varCurrentTab=2) & Label3 = "Argument",clTheme.clYellow),
If(varCurrentTab=3) & Label3 = "Evidence",clTheme.clYellow,
If(varCurrentTab=4) & Label3 = "Action Plan",clTheme.clYellow)
For reference, I am using this fx for my tabs:
ClearCollect(
FormItemStatus,
{
ID: 1,
Page: 1,
Label: "Claim",
Status: "In progress"
},
{
ID: 2,
Page: 2,
Label: "Argument",
Status: "Not started"
},
{
ID: 3,
Page: 3,
Label: "Evidence",
Status: "Not started"
},
{ ID: 4,
Page: 4,
Label: "Action Plan",
Status: "Not started"
}
);
and I'm using this fx for my status colours:
ClearCollect(
StatusColors,
{
Status: "Not started",Fill: clTheme.clMidGrey,BorderColor: clTheme.clWhite,Color: clTheme.clWhite, fontFamily: "Calibri", fontColor: clTheme.clBlue
},
{
Status: "In progress",Fill: clTheme.clYellow,BorderColor: clTheme.clWhite,Color: clTheme.clWhite, fontFamily: "Calibri", fontColor: clTheme.clBlue
},
{
Status: "Complete",Fill: clTheme.clGreen,BorderColor: clTheme.clWhite,Color: clTheme.clWhite, fontFamily: "Calibri", fontColor: clTheme.clBlue
}
)
Ideally I'd like to get this working on the onSelect value of my next button:


Would appreciate any help given! 🙂