See the community faq.
How to Get Started Creating Complex Rules in SmartThings (2017) (SmartThings Classic)