Alerting Functionality in Grafana

Hi,
Can anyone tell me how Rule and Condition works in Alerting.