Can the 'Motion Lighting App' do this logic?

Oh,

So we are using conditional statements. If you go into the Actions section, Select Actions, Conditional Action.

From there you can select IF, ELSE, and so on.

Suggested reading:

And a movie.

There is also a part 2 on Youtube.