1. true && true => true
2. true || true => true
3. true && false => false
по-моему верно отработка по else
2. true || true => true
3. true && false => false
по-моему верно отработка по else
Irtron прав. MT неправ.
логические операции - в одном приоритете и отрабатывают слева направо. для установки приоритетов вычисления используйте скобки
А как тогда HELP понимать? AND и OR указаны в разных группах, и AND стоит выше.
Precedence rules
Each group of operations in the table has the same priority. The higher the priority is, the higher the position of the group in the table is.
The execution order determines the grouping of operations and operands.
<...skipped...>
-------------------------------------------------------------
&& Logical AND From left to right
-------------------------------------------------------------
|| Logical OR From left to right
-------------------------------------------------------------
Precedence rules
Each group of operations in the table has the same priority. The higher the priority is, the higher the position of the group in the table is.
The execution order determines the grouping of operations and operands.
<...skipped...>
-------------------------------------------------------------
&& Logical AND From left to right
-------------------------------------------------------------
|| Logical OR From left to right
-------------------------------------------------------------
Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
2005.10.31 19:20:02 test EURJPY,H1: Incorrect precedence!
2005.10.31 19:20:02 test EURJPY,H1: loaded successfully