My app refers to a SharePoint list. There is a column of people in the list (with different numbers of people). I need to display the photos and names of these people and other information in the list. So I created two libraries, one of which is nested in the other. As shown below,

Gallery5 is used to display other information in a specific row,
Gallery6 is used to display the pictures and names of people in the row
I want to adjust the size of their photos according to the number of people, so I created a Textlabel (Label18_1) in Gallery5 to store the number of people (CountRows(ThisItem.Nominee))
I set the width of the Image in Gallery6 to: If(Label18_1.Text="1",80,50).
But when I refreshed the page, in the template with multiple photos, the width of images photos is still 80.
@RandyHayes