174k views
3 votes
(tco 3) what vbscript boolean operator could be used to replace the nested selection structure in this pseudocode? if empmedicalins = "y" then if empdentalins = "y" then print empidnumber, emplastname, empfirstname endif endif

User Ereli
by
5.0k points

1 Answer

2 votes
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
User Micheline
by
6.0k points