Hi Im a beginner in programming C# while watching this tutorial on C# (writing a console application) the guy skipped over a couple segments in between parts of code.

Where he was doing "if" statements of " if (input3 == "n" (vertical lines here) input3 == "n").

Im wondering how was he able to type that is that a feature in visual studio? What keystroke is it? The significance and what does it mean..

Thanks!

alt + w (in european keyboards)

what about for american english keyboards? What is the use for that symbol?

It's the character that is the shifted \ key = |

|| means "or" with the properties that if the part on the left of the || is true, the part on the right of the || is never evaluated (known as short circuiting). This can be done because in the logic true table for "or" if one side is true then the result is true. It speeds up evaluation a slight bit.

awesome thanks @Momerath!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.