lester_j: I'm fairly new to coding. I have very simple question. I'd like to run an IF() statement which executes something as long as the numbers are even. Does anyone know how to do this? if (even number) { do this } Better yet, is it possible to do: if(variable = 3 or 4 or 5) { do this } |
|
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi,
I'm fairly new to coding. I have very simple question.
I'd like to run an IF() statement which executes something as long as the numbers are even. Does anyone know how to do this?
i.e.
If (even number) {
do this
}
Better yet, is it possible to do:
If (variable = 3 or 4 or 5) {
do this
}
Cheers!