IIt's not working because you are correcting one mistake and creating new....
SELECTINPUT syntax is incorrect, please, look on standard script!!!!
in script logic you CAN'T use %SELECTION% you have to use the %TEMPS_SET%
l am currently writing from tablet and can't copy/paste or type a lot!