answersLogoWhite

0

When is the OR operator used?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

It is used when business logic determines that it is acceptable for one of two conditions to be true. For example, if you would like to check if the total discount of a product is more than 10% or more than $100 dollars, you would use the OR operator. It can be used whenever you need to check if one set of conditions out of multiple conditions is true.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What logical operator is used to reverse the boolean operator?

NOT


What is the operator is used to allocate the memory in c plus plus?

calloc operator,malloc operator


Can an IN operator can be used instead or the OR operator in phrasing certain conditions?

True


Use of scope resolution operator in C programming?

:: operator can not be used in C.


Which operator is used to determine if the operands are not exactly of the same value?

!= is the correct operator.


Why is it that we cannot use the dot operator on a type?

The dot operator is used to access properties and methods of an object. Types do not have properties or methods, so the dot operator cannot be used on them.


What is operator over loading?

Same operator can be used for different purposes like + can be used for addition of two integers and used for concatenate strings.


What happen when a java keyword new is used in an application?

When the new operator is used, a new object is created, based on the specified class.When the new operator is used, a new object is created, based on the specified class.When the new operator is used, a new object is created, based on the specified class.When the new operator is used, a new object is created, based on the specified class.


Which Bit wise operator is used to determine whether a particular bit is on or off?

Bitwise OR [|] operator


Which operator could be used to combine text from multiple cells into one cell?

ampersand(&) operator


What is concatenating operator on Microsoft Excel?

The & is the concatenation operator. It could be used like this: =A1 & A2


What are the restriction that are applied to operator overloading?

Java does not support user defined operator overloading.The operator '+' is overloaded in Java and can be used for adding both numbers and Strings.