Collection runner to be run on different environments

Im creating a collection runnerthat is to be run on a few different environments
How do i have an environment variable whose value is dependent on which environment im using