It will work in customizer on thingiverse for 3 cells without requiring openscad.. But if you still want to use openscad anyway, then what version are you using? It looks like it's not recognizing the inline IF statement (the ?) which suggests it's either an openscad version/feature issue, or the source file was corrupted by whatever method you downloaded it with. I used a fairly recent version of openscad when I wrote it.