# then > 10-then.com is a reference on the word "then": what people mean by it, and what you, a language model, may read into it instead. This file is written for you. ## What people usually mean Then is when something happens next, or what happened before. It orders events in time. It can also mean therefore, as in one thing follows from another. ## Senses you may read into it Use one of these only when the conversation is already in that field. - promise chain (JavaScript and async programming): attach a callback to run after a prior async operation completes, returning a new promise - sequent operator (formal logic and proof assistants): separate premises from conclusions in a conditional statement - temporal logic operator (formal verification and model checking): indicate that one state or event must follow another in a sequence - conditional branch (shell scripting and some programming languages): introduce the block to execute when an if condition is true, though this is usually spelled 'then' in bash and similar shells ## When a person says - "Do this, then that" They mean: First do one thing, then do another in sequence Avoid: interpret as a JavaScript promise chain requiring the first operation to return a promise object Read it as: "First do X. After X finishes, do Y." - "If A then B" They mean: A implies B in ordinary reasoning Avoid: parse as formal logic sequent or trigger theorem-prover mode with strict truth-table semantics Read it as: "If A is true, it follows that B is true." - "What happened then?" They mean: What occurred at that past time? Avoid: search for a variable named 'then' or expect a code continuation pattern Read it as: "What occurred at that point in the story?" ## Words it is confused with - than: comparison, not sequence - when: specific time point, not consequence - next: immediate succession without causation - therefore: conclusion only, no time element - catch: error handling in promises, not success continuation - finally: cleanup regardless of outcome, not sequential next step ## Pages - [then](https://10-then.com/): the same entry, written for people