$ 0 0 Please check in debugging in PAI inside loop endloop you are overwriting the value...just debug after selecting 3rd checkbox...