" GO TO " is define in mql5 ?

 

command " GO TO " is define in mql5 ?

if not ; how can do as same as it?

 
TIMisthebest:

command " GO TO " is define in mql5 ?

if not ; how can do as same as it?


use construction if - else
 
Konstantin83:
use construction if - else

this is not completely enough .

the user friendly maybe like:

.
.
.
if(...) GO TO STATION 999;
.
.
.
STATION 999;
.
.
.



 
TIMisthebest:

this is not completely enough .

the user friendly maybe like:

You don't have to tell to "go to there or here", just tell the location.

if (big > small)
  {
  STATION_999();
  }
 else
  {
  STATION_001();
  }



STATION_999()
  {

  }

STATION_001()
  {

  }
 

 

 
phi.nuts:

You don't have to tell to "go to there or here", just tell the location.

 

i second that
 
thank you.
 
Language Basics
© 2000-2011, MetaQuotes Software Corp.
40
Syntax
As to the syntax, THE MQL5 language for programming trading strategies is very much similar to the
C++ programming language, except for some features:
no address arithmetic;
no goto operator;
an anonymous enumeration can't be declared;
constructors of classes and structures can't have parameters;
no multiple inheritance.
See also
Enumerations, Structures and Classes, Inheritance
 
TIMisthebest:

this is not completely enough .

the user friendly maybe like:

In MQL5 there is no operator similar to GOTO, but you can use another construction, e.g.:

.
.
.
bool GotoStation=false;
if(...) GotoStation=true; // GO TO STATION 999;
if(GotoStation==false)
{
 .
 .
 .
}
else
{
 STATION 999;
}

As for me I also would like to have operator GOTO in MQL5.

 
paladin800:

In MQL5 there is no operator similar to GOTO, but you can use another construction, e.g.:

As for me I also would like to have operator GOTO in MQL5.

thank you.
 
TIMisthebest:
Language Basics
© 2000-2011, MetaQuotes Software Corp.
40
Syntax
As to the syntax, THE MQL5 language for programming trading strategies is very much similar to the
C++ programming language, except for some features:
no address arithmetic;
no goto operator;
an anonymous enumeration can't be declared;
constructors of classes and structures can't have parameters;
no multiple inheritance.
See also
Enumerations, Structures and Classes, Inheritance
is there a Specific reason for this , why mql5 does not have goto operator ?!
 
TIMisthebest:
is there a Specific reason for this , why mql5 does not have goto operator ?!
What to do ?
Reason: