Although consumers often rely on chemical information to optimize their foraging strategies, it is poorly understood how top carnivores above the third trophic level find resources in heterogeneous environments. Hyperparasitoids are a common group of organisms in the fourth trophic level that lay their eggs in or on the body of other parasitoid hosts. Such top carnivores use herbivore-induced plant volatiles (HIPVs) to find caterpillars containing parasitoid host larvae. Hyperparasitoids forage in complex environments where hosts of different quality may be present alongside non-host parasitoid species, each of which can develop in multiple herbivore species. Because both the identity of the herbivore species and its parasitization status c...