For Loop With Variable [Solved]

Yeah, i had fixed the } after i posted; sorry. Also, this wasn’t the first try. I also used the openhab tutorial here, but it didn’t work for my variable, only when i put a number.