|| (OR lógico)
Descripción
Verdadero si cualquiera de los operandos es verdadero.
Ejemplo
Este operador pueden usarse dentro de una instrucción condicional if
if (x > 0 || y > 0) {
// ...
}
es verdadero si x o y es mayor que 0.
※ Nota:
No hay que confundir el operador booleano || (barra vertical doble) con el operador binario OR | (barra vertical sola).
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.
Additionally, some links direct to products from our own brand, DIYables.