Variable: org-last-todo-state-is-todo
org-last-todo-state-is-todo is a variable defined in org.el.gz.
Value
nil
Documentation
This is non-nil when the last TODO state change led to a TODO state.
If the last change removed the TODO tag or switched to DONE, then this is nil.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defvar org-last-todo-state-is-todo nil
"This is non-nil when the last TODO state change led to a TODO state.
If the last change removed the TODO tag or switched to DONE, then
this is nil.")