The 0 at the end of @IPADDRESS0 denotes the first NIC. A 1 as in @IPADDRESS1 would denote the second. You need to provide the smarts to enum them both to know which is which.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.