Discount in commerce webform
I am using commerce webform to create an event ticket. There is a question in the webform asking whether the participant has already attended the previous event? IF he selects YES, will ask for his attendee number and should provide 10% discount of the price. Tried to create rule but struck about how to implement with webforms. Please advise.