Let's say I have the following scenario: An IP address is linked to a particular string and I want to match an action.
Example:
IP address: 1.1.1.1 String: "Home" IP address: 5.5.5.5 String: "Work"
if($IP -eq 1.1.1.1)
{
#Do something with "Home"
}
What would I be needing to use to have 'pretty' code instead of multiple if loops ?