Self-learning the MQL5 language from scratch - page 30

 

Vasiliy Sokolov:

...How to do all this perhaps I'll write later.

I would be grateful to you, and I will be grateful to all the newcomers, if they read (or will read) this thread.

Regards, Vladimir.

 
Vasiliy Sokolov:

No. There won't be a book. Maybe a few articles. But not anytime soon for sure.

Very sorry about that.

Sincerely, Vladimir.

 

Vasiliy Sokolov:

How to do all this perhaps I will write later.

Please do write )

 
if((достаточно времени) && (достаточно терпения))
{
     я выучу язык MQL 5;
}
 
Valeriy Yastremskiy:

Hello Valery! A very good example! If the expression is true:

if((достаточно времени) && (достаточно терпения))

then operator number one will be executed, i.e.:

     я выучу язык MQL 5;

Respectfully, Vladimir.

 
MrBrooklin:

Hello Valery! A very good example! If the expression is true:

then operator number one will be executed, i.e.:

Respectfully, Vladimir.

Check question:
"enough time" - what type can this variable be to avoid compiler warnings?
 
Aliaksandr Hryshyn:
Control question:
"enough time" - what type can this variable be so that there are no compiler warnings?

Definitely not a lazy type

 
Aliaksandr Hryshyn:
Control question:
"enough time" - what type of variable can this be so that there are no compiler warnings?
//+------------------------------------------------------------------+
//|                                                            1.mq5 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
string a="достаточно времени";
string b="достаточно терпения";
//---
   if(a!=b)
     {
      Print("я выучу язык MQL 5");
     }
  }
//+------------------------------------------------------------------+
Respectfully, Vladimir.
 
MrBrooklin:
Respectfully, Vladimir.
//+------------------------------------------------------------------+
//|                                                            1.mq5 |
//|                        Copyright 2020, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
bool достаточно_времени=true;
bool достаточно_терпения=true;
//---
   if(достаточно_времени && достаточно_терпения)
     {
      Print("я выучу язык MQL 5");
     }
  }
//+------------------------------------------------------------------+

Exactly logical, not string, because between them E.))))

 

MrBrooklin:
С уважением, Владимир.

if(a!=b)

this is a completely different condition from the one above, and it's not about the visual difference

if((достаточно времени) && (достаточно терпения))

it's about the simultaneous execution of the left part of the "AND" and the right part of the

Reason: