Fortinet interview question

Is there any difference between WAF and IPS?