I apologise for the mistake I did in my last post (And that confused rehana even more)
I thought it was very very simple question and went on to give answer in hurry.
It should be-
condition1 WS-FLAG1 = "D" AND WS-FLAG2 = "B" = false
condition2 "D" = False ( "D" means WS-FLAG2 = "D" )