How do I type this "or" character?

"if (brightness == 0 || brightness == 255) { fadeAmount = -fadeAmount ;... " I don't know what keys will produce this " || " .

Answers

  • Answer ✓

    image alt text

  • Answer ✓

    The | is called the pipe operator (so || is actually 2 keys)

    On my keyboard it is SHIFT + \ but it maybe different on yours.

  • Hah! Thanks guys. That key on my keyboard looks different (it looks like 2 vertical slashes) but it does produce the "|" character. I have been copy/pasting this for an embarrassingly long time.

  • On my French keyboard, I must do AltGr+6.

    Your question isn't pertinent without specifying which kind of keyboard you have...

  • edited October 2014

    On my French keyboard,...

    AFAIK, any US keyboard configured to "International" layout is pretty able to type in any Latin diacritics! :-c

  • I fail to see your point, GoToLoop.

  • edited October 2014

    Just silly observation. I'm used to type both in US & ABNT2 (Pt-Br) keyboards.
    Only important thing is diacritics typing for me! ^#(^
    But of course, laptops can't change their keyboards! :(|)

  • MAC azerty users:: alt+shift+L =|| !

Sign In or Register to comment.