If you don't specify a name, you use loopindex. If you do, then you reference by name loopindex("HasDropLoop").
To build up your string, you need to convert the number to a string, so str(loopindex("HasDropLoop")) would get that particular segment for you.