Using mode changes as a condition + automatic mode changes

You know, there are several mode options in that smartapp and they are not labeled clearly enough. Is the “system changes mode” open the mode it is changing to or from? And what the heck does “set for specific modes” at the end mean?