When-Then Thinking