what does it mean | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what does it mean

found |= text.contains(wort.toLowerCase().trim()); what does |= mean?

11th Jan 2021, 8:05 PM
Manfred h
1 Answer
+ 3
That is a bitwise OR operator. The variable 'found' should be a boolean and the expression on the right hand side would also evaluate to a boolean. 0 | 0 = 0 0 | 1 = 1 1 | 0 = 1 1 | 1 = 1
11th Jan 2021, 8:22 PM
Avinesh
Avinesh - avatar