Easiest and fastest way:
- mark the ?
- press F1
- start reading!
cant find anything in that way...
- florenceale: what does it mean this expression?...I'm confused with ? : etc.
Ternary Operator ?: - Operators - Language Basics - MQL4 Reference
- florenceale: cant find anything in that way...Why not?
yes thanks i had found it but by google. It means either or.
florenceale: Hello what does it mean this expression?...I'm confused with ? : etc.
// Concise version double price = (type == OP_SELL) ? Ask : Bid; // Verbose version double price; if (type == OP_SELL) price = Ask; else price = Bid; // Yet another version double price = Bid; if (type == OP_SELL) price = Ask;
Comments that do not relate to this topic, have been moved to "Need help with Custom Indicator code — the separate window is empty".
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello what does it mean this expression?...I'm confused with ? : etc.