In Bamboo Specs can I create a dynamic Requirement based on an Injected Bamboo Variable

I have a plan where I need to change the agent being used for a job in order to build the correct image based on an injected bamboo variable. How can I go about doing this?