Gamer
New member
- Joined
- Nov 6, 2021
- Messages
- 1
- Programming Experience
- Beginner
Hi EverYone, Can you please let me know what i am doing wrong . The code isnt executing
I want if display equals Ds and otype is abc or def and place is India or America then only execute the code..
C#:
If((Display .Equals(“Ds”, StringComparison.OrdinalIgnoreCase))
&&
((oType.Equals(“Abc”, StringComparision.OrdinalIgnoreCase))
||
oType.Equals(Def”, StringComparison.OrdinalIgnoreCase))
&&
((Place.Equals(“India, StringComparision.OrdinalIgnoreCase))
||
(Place.Equals(“America”StringComparison.OrdinalIgnoreCase))))
{
MessageBox.show(“Code executed);
}
}
Last edited by a moderator: