Hex Editor
Hex Editor - Binary File Editing Software for Windows

|| Logical OR Operator

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >

This operator evaluates to non-zero if at least one of if its operands is non-zero, otherwise it evaluates to zero.

Syntax:

exp1 || exp2
      

Usage:

0 || 0               // evaluates to 0
0 || 2               // evaluates to 1
5 == 5 || 2==3       // evaluates to 1
      

If exp1 evaluates to a non-zero value, exp2 is not evaluated.

< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.