Diferencia entre revisiones de «or»

De ArduWiki
Saltar a: navegación, buscar
(Advertencias)
(Vea también)
Línea 32: Línea 32:
 
* [[not]]
 
* [[not]]
 
* [[and]]
 
* [[and]]
 +
* [[xor]]
 
* [[not bit a bit]]
 
* [[not bit a bit]]
 
* [[and bit a bit]]
 
* [[and bit a bit]]
 
* [[or bit a bit]]
 
* [[or bit a bit]]
 +
* [[xor bit a bit]]
  
 
== Referencias ==
 
== Referencias ==

Revisión del 18:51 25 jun 2018

Descripción

Es un operador boleano or || que permite unir dos expresiones lógicamente.

a b a || b
0 0 0
1 0 1
0 1 1
1 1 1

Sintaxis

espresion 1 || expresion 2

Retorna

Verdadero o falso.

Advertencias

  • No confundir el operador boleano or ||, con el operador or bit a bit |.

Ejemplo


Vea también

Referencias