Difference between := and = operator in pine script

Viewed 5881

I'm super new to TradingView Pine Script and I didn't find a proper reference for understanding the difference between the := and = operators.

Does anyone have a reference or description?

Thanks in advance

1 Answers

= is used to declare and initialize variables := is used to assign values to variables after initialization, transforming them into mutable variables(any immutable variable).

follow this to know more in details about :=

Related