For better understanding we have some examples for you:
In this example project for Pepper, the system attribute Time is used in a Condition element to compare times. If it is before 10:00, the greeting variable (which is a custom variable because it is not set by the system, but by the user) is set to the greeting “Good morning!”. After 18:00 the greeting changes to “Good evening!”.