How can I type the OR operator || (also called pipe)

Would be great if this section had a short mention of how to type the || on the eyboard.

1 Like

The operator for logical OR is actually two characters, not one. Look for the pipe character, | on your keyboard. On a standard American keyboard it’s usually on the backslash \ key. Shift that and you get |.

1 Like

Mine is Danish, but I found it. Thanks

1 Like

For reference, what key did you find it on?

Yes, it’s the key left of the backspace. It has the following symbols on it ´ `. pressing alt gr annd that will give a pipe |

1 Like

I use a Spanish keyboard and on that the pipe character | is on the same key for 1 and !. You get | by holding down Alt Gr

i.e.

| = Alt Gr + 1

1 Like

Hi there! On a French MacBook Pro keyboard the pipe character is shift + alt + L.