Lipi Reference
Lipi

Operators

||

It evaluates two Boolean expressions and returns true if at least one of them is true.

Syntax

                expr0 || expr1 | expr0 or expr1
              

Example


          //@lipi=2
indicator("Logical OR Example", overlay=true)
// || is the symbol spelling of or
gap = open > high[1] || open < low[1]
bgcolor(gap ? color.new(color.orange, 0.2) : na)