Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A for loop seems to be supported but there is no documentation on how to use it. I'm getting the following error when trying to use a loop index i:

Your for loop's body section is not legal. You can only use literals as a refinement on objects (when trying to index into an array[i] returned from findEntities).



I looks like only the two built-in variables "array1" and "array2" can be used like actual arrays. someBot = someArray[0]; will not work but array1 = someArray; someBot = array1[0]; will.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: