Diagnostics
P005
`??` mixed with `&&` or `||` needs parentheses
P005
Coalescing and logical operators in the same ungrouped expression are ambiguous to readers. Parenthesize the intended coalescing or logical subexpression.
Failing example
script "example"
data chart = subscribe(data.ohlcv)
on chart.update { let value = null ?? false || true }Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { let value = (null ?? false) || true }