The easiest way would be to do an ifcheck on the input and then set a variable to a number then switch-block the number, ie. User input's Labrador which makes dog_id equal 1, then in the switch-block for case 1 call the function for the dog object with the type of dog being Labrador
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268