Skip to content

Logical or? #328

Answered by chriselrod
deklanw asked this question in Q&A
Aug 25, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote
eq = (b == r) | (b == s)

Note that the parenthesis are needed, because | has difference precedence from ||.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@deklanw
Comment options

@chriselrod
Comment options

Answer selected by deklanw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants