It seems the selected element is idx='7 * {{ii}}'but not idx='7 * {{ii}} - 4'. I know it can solved by assigning 7 * {{ii}} - 4 to a new variable. But I’m curious if there is a straight way to make it?
As far as I know, the selectors are treated as string, and you cannot perform any operation in the selectors. You have to assign it to a variable and then pass it on to the selector tags.
Selector if you observe in properties panel will use string.Format so instead of only ii you can use 7 * ii - 4 completely as the input in string.format
Eg: string.Format("<webctrl tag ='div idx={0} />",(7*ii-4).ToString)