whichever
1. [ [Undefined_variable] ] determiner, undetermined one of many
Examples:

"the balloon will go in whichever direction the wind blows"

2. [ [Undefined_variable] ] pronoun, an unspecified person or thing
Synonyms: whatever whatsoever whoever