"Exactly when" is another way to say "If and only if", In other words when "statement A is true" implies "statement B is true" and "statement B is true" implies "statement A is true", then it is said statement A is true exactly when statement B is true.