Divalent cations can control a switch-like behavior in heterotypic and homotypic RNA coacervates.