In the first if statement you have used get value = is empty () Which is not correct..
Pls set it as,
If is empty getValue
Then ....
Else ....
Also in the else statement you have used for each item in the list, that is also not correct.. it will throw an error.. because you are trying to use int as list .. either split t