How to create conditions?