DC Choose OptionIndex Function Callback Error

Thank you @MikeWayzovski.

I have a question about this.

hidden_example2.skp (34.4 KB)
this file is from the post below.
https://forums.sketchup.com/t/hiding-showing-components-within-a-dynamic-component/66645/6?u=allusernametaken

and this example doesn’t the index number value, but still works. what makes it work?