Top "Operators" questions

'AND' vs '&&' as operator

I have a codebase where developers decided to use AND and OR instead of && and ||. I know that …

php operators operator-precedence
What does "|=" mean? (pipe equal operator)

I tried searching using Google Search and Stack Overflow, but it didn't show up any results. I have seen this …

java android operators
Can you append strings to variables in PHP?

Why does the following code output 0? It works with numbers instead of strings just fine. I have similar code in …

php string operators
What does the colon (:) operator do?

Apparently a colon is used in multiple ways in Java. Would anyone mind explaining what it does? For instance here: …

java for-loop foreach operators colon
What is the difference between & and && in Java?

I always thought that && operator in Java is used for verifying whether both its boolean operands are true, …

java operators boolean bitwise-operators
No increment operator (++) in Ruby?

Possible Duplicate: Why doesn't Ruby support i++ or i— for fixnum? Why is there no increment operator in Ruby? e.…

ruby operators
jQuery select by attribute using AND and OR operators

I'm thinking about, if it is possible in jQuery to select elements by named attributes using AND and OR. Example: &…

jquery jquery-selectors find operators
Difference between "and" and && in Ruby?

What is the difference between the && and and operators in Ruby?

ruby operators
Logical Operators, || or OR?

I remember reading a while back in regards to logical operators that in the case of OR, using || was better …

php operators logical-operators or-operator
How do I get a decimal value when using the division operator in Python?

For example, the standard division symbol '/' rounds to zero: >>> 4 / 100 0 However, I want it to return 0.04. …

python python-2.7 math syntax operators