Lesson 3 - MQL4 Data types - page 3

 

Hi codersguru,

I'm not sure if you are still answering questions or not?

Any way here is my question:

In lessen #3 page 9 you added example of Boolean.

The third example is : Bool bFlag = 1;

Here you used "1" as Initialization while we are using Bool Only for [true or false]. Is this right we can Initialize the bool with number?

Regards

 
savio:
Hi codersguru,

I'm not sure if you are still answering questions or not?

Any way here is my question:

In lessen #3 page 9 you added example of Boolean.

The third example is : Bool bFlag = 1;

Here you used "1" as Initialization while we are using Bool Only for [true or false]. Is this right we can Initialize the bool with number?

Regards

0 = false

1 = true

FerruFx

 
FerruFx:
0 = false

1 = true

FerruFx

Hollow FerruFx,

I appreciate your Clarification.

All the best,

 
savio:
Hollow FerruFx, I appreciate your Clarification

You're welcome.

FerruFx

 

Nice Job!!

Straight to the point, complete with tables and explanation. No bs. Great read THANKS A LOT!

Reason: