I'm new to pinescript and I try to understand how things works, I'm struggling to fully understand iff statement (?:) and how its evaluated series of data when they are passed after ?: for example.
higher_than = high > close
x = higher_than ? 1 : 0
b = x > 0 ? higher[2]: na
x is evaluated as for each value that is true in higher_than is replaced with 1, if a value is false it's replaced with 0. but how about the b statement? is does this work?
for each value in x that is superior to zero, replace it with higher value at the same index ?
