its ok i solved it myself with trial and error
as below

=IF(B5>B6,B5,"")