In the Constraints panel you can add logical expressions and combinations of such. All results from logical tools can be used to define constraints.
Add new constraints by pressing New and choosing a guard.
Guard
The tool constraints are defined in the Toolbox. You can make extensive and complicated expressions by combining results of logical tools and states.