| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Are there no "and" "or" operators in mql4??
I am just learning to code mql4 and it appears as though there are no "and" "or" operators which are common to almost any programming language. In the mql4 documentation it gives the usual bitwise and logical operators but no "and" "or". Does this mean that all expressions comparing various conditions will have to be a complicated combination of nested if else and switch statements. Is there no way to write an expression such as this in mql4 without using nested if or switch statements: if(((a>b) and (e>b)) or (r>s)) {} ?
Thank you for your time |
|
|||
|
Quote:
|| for "or" example if(((a>b) && (e>b)) || (r>s)) { blah blah blah } Last edited by ejoi; 06-23-2007 at 08:04 AM. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to "teach" and to use the AI ("neuron") EA? | danil | Suggestions for Trading Systems | 5 | 07-15-2008 04:26 PM |
| dose it posible to creat any function of "mql code" posting in this forum? | phoenix | Metatrader Programming | 20 | 05-28-2008 03:08 PM |
| "Gordago Stock Optimizer" - easily generates Expert Advisors | De Vinci | Tools and utilities | 4 | 05-31-2007 01:27 PM |