mql4 order select function question

 

hello

mql4 question 

by default OrderSelect() is assigned value 0 so what switches OrderSelect() from 0 to 1?

documentation reads "if the function succeeds" but that is not enough information

thank you 

 
Fstrifoerr8:

:))))))

true and false 

0 or 1 does not answer question

thank you 

 
boopa26:

0 or 1 does not answer question

thank you 

0 means false, 1 means true. 2 variants

Or what do you mean? 

 
boopa26:

0 or 1 does not answer question

thank you 

What is the question ?
 

OrderSelect returns true or false, you should get into the habit of using true or false and not 1 or 0. It makes your code easier to read.

documentation reads "if the function succeeds" but that is not enough information


what more information do you need? If an order is selected it returns true. If not, it returns false.

 
boopa26:

hello

mql4 question 

by default OrderSelect() is assigned value 0 so what switches OrderSelect() from 0 to 1?

documentation reads "if the function succeeds" but that is not enough information

thank you 

Both I and WHRoeder have answered that question before on your previous thread on the old MQL4 Forum:

OrderSelect function question (boopa26) - MQL4 forum - Page 3
OrderSelect function question (boopa26) - MQL4 forum - Page 3
  • www.mql5.com
OrderSelect function question (boopa26) - MQL4 forum - Page 3
 
Alain Verleyen:
What is the question ?
by default OrderSelect() is assigned value 0 so what switches OrderSelect() from 0 to 1?
 
boopa26:
by default OrderSelect() is assigned value 0 so what switches OrderSelect() from 0 to 1?

Your question has been answered.

If you are not capable of understanding the answer, then you are really not capable of writing code.

This is your last warning. If you continue to post, repeating inane questions, you will be banned

Reason: