D
Daniel Rimmelzwaan
Hello,
I have a conditional statement in VB that I want to translate in C#, but I
can't find the syntax.
VB:
If (MyFirstString = "" or MySecondString = "") Then
<insert your code here>
End if
C#
if (MyFirstString == "" ---- then what?) I can't get rid of those red
squiggly lines if I use "or"
{
<insert your code here>
}
the keyword "or" does not seem to exist in C#, or I am not typing it
correctly. Can anyone please show me how to do this?
Thanks,
Daniel
I have a conditional statement in VB that I want to translate in C#, but I
can't find the syntax.
VB:
If (MyFirstString = "" or MySecondString = "") Then
<insert your code here>
End if
C#
if (MyFirstString == "" ---- then what?) I can't get rid of those red
squiggly lines if I use "or"
{
<insert your code here>
}
the keyword "or" does not seem to exist in C#, or I am not typing it
correctly. Can anyone please show me how to do this?
Thanks,
Daniel