The example using OPTIONINDEX in the Knowledge Center article http://help.sketchup.com/en/article/114564 (Implement dynamic pricing) doesn’t work properly for me (SU 2015, Windows 7 64 bit, IE 11 update version 11.0.17); OPTIONINDEX appears to return the value for the previous entry instead of the current one. As an example, I added the attribute “Index” to the example optionindex_function.skp; see attached file optionindex_function_delay.skp.optionindex_function_delay.skp (539.4 KB) .
Is this a known problem, & is there a workaround (other than using multiple “ifs”)? Same seems to hold for OPTIONLABEL.
If this is a known problem, I recommend you update the examples, so others don’t spend the time required to investigate this (learning experience notwithstanding).
Thanks & sorry if I missed any previous answers.