Physical parts of computer: Computer Hardware
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:
<span>If (empmedicalins = "y") And (empdentalins = "y") Then
print empidnumber, emplastname, empfirstname
Endif</span>