Tab switching code gone wrong

In whenanybutton.clicked, there is an if statement. The first if statement works fine. However the else portion does not. For some reason the current_tab variable = tab 2 but should equal tab 1 in this scenario. This is a picture of all my code. I am trying to make tabs.



You have other Button.Click handlers, so you need to shield your Any Button Click logic with an
If notAlreadyHandled test.

(Unless you want this logic to run for the other buttons too.)

Also, how many digits does DynamicComponents1.GetId return?
Enough to trigger a text Contains '1' when you get past 9?

Well there can be an infinite number of tabs and this should run. But I am testing with just tab 1 and tab 2. and it wont work so I doubt it will work with tab 8 or 16 or 300. Also can you show me an example of " so you need to shield your Any Button Click logic with an
If notAlreadyHandled test." Because I don't quite understand.

So how do I fix it ? I dont understand

Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

export_and_upload_aia

.

okay.
Echo_proxy_bare_mytabs.aia (362.0 KB)

This is what I meant.


(draggable)