Hi,
If you really want to use the IF node, you should use it to create a new list of values where 123 is replaced with 456 and then use the Element Set Parameter by Name node.
I normally use FilterByBoolMask or AllIndicesOf and GetItemAtIndex to filter the elements.
Hope it helps
Giovanni