Workflow conditions in erpnext

Please check the documentation.