Get row index of Selected Tab in Tab Data of Tab Strip

on propertyChange, I want to check whether the selected tab of a tab strip is “HIDDEN” or not. In other words, I want to read the value of the cell at row of selected tab and column “HIDDEN” (in Tab Data).

I am trying to use an if statement that looks something like this:
if event.source.tabData.getValueAt(selectedTabrow,“HIDDEN”)== True:

Not sure how to get the correct row index in this case.

The task I actually want to accomplish:
I have two tab strips (independent and dependent).
Some of the tabs in the second, dependent tab strip will be hidden based on the selected tab of the first, independent tab strip.
Changing the selected tab in the first tab strip sometimes results in a situation where the selected tab in the second (dependent) tab strip is hidden and so, none of the visible tabs of second tab strip is selected…which I don’t want.

What I want:
if after changing selected tab of independent tab strip, selected tab of dependent tab strip is hidden, change selected tab of dependent tab strip to first visible/not hidden tab in the Tab Data. Hope this makes sense.

I am new to ignition, and scripting in general, and would highly appreciate any help with this.

Thanks!