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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments