org-get-valid-level

org-get-valid-level is a compiled Lisp function in `org.el'.

(org-get-valid-level LEVEL &optional CHANGE)

Rectify a level change under the influence of `org-odd-levels-only'
LEVEL is a current level, CHANGE is by how much the level should be
modified. Even if CHANGE is nil, LEVEL may be returned modified because
even level numbers will become the next higher odd number.