How to use if condition while matching data from SQL

you have been asked several times to provide readable screenshots… please do that next time…
also you might want to switch screens correctly…

Taifun