Long before computers, humans encoded procedural knowledge as branching "if-then" rules, from divine omens to long division.