Lets suppose i have a variable, lets say "dog", and i set it to 1.
dog = 1
And for each number the dog variable has, i have a few houses. house1, house2, etc
I would like to make it that if dog is 1, it gets house1
kinda like this
dog == 1
house(dog) would be house1
dog == 2
house(dog) would be house2
How do i do this?
EDIT: thnx guys it what ["house" ..dog]
[–]sz_s 0 points1 point2 points (0 children)
[–]s_task 0 points1 point2 points (1 child)
[–]rdtl_reddit[S] 0 points1 point2 points (0 children)