SanMiguel:
Is this code correct? It will do 1 OR the other?
I had a problem with if else statements the other day so just checking:
First statement will fire if first condition is met.
Second statement will fire if a) first condition is not met AND b) second condition is met.
Since both statements write the same variable, the "else" is superfluous.
CB
cloudbreaker:
First statement will fire if first condition is met.
Second statement will fire if a) first condition is not met AND b) second condition is met.
Since both statements write the same variable, the "else" is superfluous.
CB
they write to the same variable but with different values depending on the if.

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
Is this code correct? It will do 1 OR the other?
I had a problem with if else statements the other day so just checking: