Site icon Exam4Training

Which of the following demonstrates the correct syntax for using the Vb.Net "If" Operator?

Which of the following demonstrates the correct syntax for using the Vb.Net "If" Operator?
A . If(condition1, valuelfTrue, valuelfFalse)
B . If(condition1, valuelfTrue) Elself(valuelfFalse)
C . If condition1 Then valuelfTrue Elself valuelfFalse
D . valuelfTrue If condition1 Else valuelfFalse

Answer: A

Exit mobile version