Gotta agree with arci on this one. The "when" was an obvious choice by Alan as an alternative to "if." Using "if" sucks all the optimism out of the sentence.