Context: Y has just told X that he/she is thinking of buying a flat in New York.

X: Do you have a job lined up in New York?
Y: That's the only way I'd consider a move there.