I'm not really sure what exactly are you trying to do here? Since you don't have any looping going on in your code I got to ask are you really trying to create a script or an expression? Can you try to explain your problem in bit more detail, please?