Top "Logical-operators" questions

Logical operators are symbols that aid in evaluating boolean expressions.

Logical operator || in javascript, 0 stands for Boolean false?

I happened to know the following code Here is the code, and very simple: var test = 0 || -1 ; console.log(test); …

javascript boolean logical-operators or-operator
Is it possible to use an AND operator in grepl()?

I want to search for anything that begins with 55 and anything that has the word Roof (case-sensitive, for those who …

r logic logical-operators grepl
GitHub search - how to exclude (logical NOT) company or user from search results

In this search query (test it live ↗) I'm searching for: all pull requests by user limonte (me) for the vaadin …

search github logical-operators pull-request
"&&" and "and" operator in C

I am trying to calculate the Greatest Common Denominator of two integers. C Code: #include <stdio.h> int …

c operators logical-operators
Java chained inequality if (5<i<10)

Is there any operator or trick for such operation? Or is it necessary to use if(5<i && …

java types primitive logical-operators
check if file does not exist or is older than another in csh

in C-shell I need to check if a file exists or if it is older than another file (or in …

shell logical-operators csh tcsh
Does Java check all arguments in "&&" (and) operator even if one of them is false?

I have such code: if(object != null && object.field != null){ object.field = "foo"; } Assume that object is null. …

java logical-operators short-circuiting and-operator
How to avoid short-circuit evaluation on

I'm working with Ruby on Rails and would like to validate two different models : if (model1.valid? && model2.…

ruby-on-rails operators logical-operators short-circuiting
Is there an Non-Short circuited logical "and" in C++?

tl;dr: Is there a non-short circuit logical AND in C++ (similar to &&)? I've got 2 functions that I …

c++ operators logical-operators
Python convert a string to a logic operator

For example, if I have an expression like x=True or True if I evaluate in the shell the result …

python logical-operators boolean-expression boolean-operations string-conversion