When in doubt, consult the documentation — Documentation on MQL5: Language Basics / Operators / Ternary Operator ?:
Easier than that is selecting the section in MetaEditor and pressing F1, and it will show the context sensitive help.
Thanks to you both. I had trying search and found nothing - hence my question.
Fernando - I guess if I knew this was a Ternary operator or what a Ternary operator was then I would have found the documentation.
The search engine on this website isn't the best - didn't return anything meaningful for question mark.
Have now followed link to full explanation.
Thanks again to Dominik & Fernando
Thanks to you both. I had trying search and found nothing - hence my question.
Fernando - I guess if I knew this was a Ternary operator or what a Ternary operator was then I would have found the documentation.
The search engine on this website isn't the best - didn't return anything meaningful for question mark.
Have now followed link to full explanation.
Thanks again to Dominik & Fernando
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have seen this code in the source of an indicator and just wondering what does the question mark ? accomplish and conjunction with the colon : .