Discussing the article: "From Basic to Intermediate: Operator Precedence"

 

Check out the new article: From Basic to Intermediate: Operator Precedence.

This is definitely the most difficult question to be explained purely theoretically. That is why you need to practice everything that we're going to discuss here. While this may seem simple at first, the topic of operators can only be understood in practice combined with constant education.

In the previous article "From Basic to Intermediate: FOR Statement", we covered the basics of the FOR statement. Using the material presented in earlier articles, you can create quite a good volume of MQL5 code. Even if these are quite simple applications, they can be a source of proud and enjoyment for many.

For many other programmers, small code snippets created by beginners can seem trivial, but if the beginner finds a solution to a problem encountered, this is really a reason to be proud. To be honest, what we've been discussing so far will only allow you to create some script-like code. Даже если Even if it is something very simple and requires no interaction, if you've done it yourself, then you have started applying the basic knowledge and are moving in the right direction.

But now it’s time to move on to a new topic. This topic will allow us to advance further in creating more meaningful code. Today we will explore operators. Although we have talked about them before, we are now going to take a few steps further because what we covered earlier was quite basic and simple. In this article, we will delve into operator precedence rules in practice, as well as the ternary operator which, for many, is a somewhat confusing concept, yet extremely useful in a vast range of situations. It can save us both time and effort in certain programming tasks.

Author: CODE X