Programmable Filter: if else statment