MQL4 Bool Type
Overview
true or false.1 for true, 0 for false.Usage in Logical Expressions
false.true.Examples
bool a = true;
bool b = false;
bool c = 1;int i = 5;
double d = -2.5;
if(i) Print("i is true"); // Output: i is true
if(d) Print("d is true"); // Output: d is true
i = 0;
if(i) Print("i is true"); // Output: (no output)
else Print("i is false"); // Output: i is false
d = 0.0;
if(d) Print("d is true"); // Output: (no output)
else Print("d is false"); // Output: d is false
Related Topics
Previous
arrow_back
Color type