So you want to nest if functions.
An if formula is basically
=(Your Criteria, Output if true, Output if false)
So you would start by looking for the Yes Values
=if(A1="Yes","True","False")
Then instead of saying true if it find yes, you want to add another criteria...