MMTMMT Docs
Diagnostics

P004

legacy logical operator spelling

P004

Word spellings such as and, or, and not are legacy syntax. Replace them with &&, ||, and !.

Failing example

script "example"
data chart = subscribe(data.ohlcv)
on chart.update { let value = true and false }

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { let value = true && false }

On this page