| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| How to code either or function in Empty4? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2753 |
Page 1 of 1 |
| Author: | dsugums [ Fri Jul 26, 2013 1:47 am ] |
| Post subject: | How to code either or function in Empty4? |
I am learning to code Empty4 crap. managed to get some stuff modified on existing ea's for a start. I am still struggling to find a code line that can select either 1 of 2 variables. For example I have A = 1 and B = 5. I want to code so that for condition to trigger, either A < 1 or B > 5. Hope someone can help! |
|
| Author: | dsugums [ Fri Jul 26, 2013 2:38 am ] |
| Post subject: | Re: How to code either or function in Empty4? |
I think I got it! if (A < 1 || B > 5) Hope this is right |
|
| Author: | SteveHopwood [ Fri Jul 26, 2013 6:54 pm ] |
| Post subject: | Re: How to code either or function in Empty4? |
It is. Great to see you trying to get involved with this stuff. |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|