Than always indicates comparison of some kind. Then has two uses: consequence, or consecutive action. In some contexts, then may be understood rather than stated.