You want both conditions to be true, so you can "And" them.
In vbscript, the and is written as "And" (not as && like other languages), so you get:
If (empmedicalins = "y") And (empdentalins = "y") Then
print empidnumber, emplastname, empfirstname
Endif