a 'go to' command

GamBIT

New member
Hello!
I think it would be very useful to have a command like GOTO (point) in BASIC.
It is a very simple but useful command that moves a running carrier to some point in a list. It would make a programming more easy.
I suggest to make a command GOTO [name], where [name] is the unique pointer, and a command POINTER [name].

For example :
if ....
...
if ...... goto [my_pointer]
end
...
end
...
...
pointer [my_pointer]

It would give the very simple logical transitions.

Thanks!
 

Dm114

Well-known member
Hello!
I think it would be very useful to have a command like GOTO (point) in BASIC.
It is a very simple but useful command that moves a running carrier to some point in a list. It would make a programming more easy.
I suggest to make a command GOTO [name], where [name] is the unique pointer, and a command POINTER [name].

For example :
if ....
...
if ...... goto [my_pointer]
end
...
end
...
...
pointer [my_pointer]

It would give the very simple logical transitions.

Thanks!
This could help you:
 

GamBIT

New member
I dont understand what do you mean.
GOTO and a cycle without a condition are not interconnected.

GOTO allows to jump to any point of the program. Outside any logical structure.
And we talk about not implemented things now, by the way, if to talk what could help right now.
 

Dm114

Well-known member
I dont understand what do you mean.
GOTO and a cycle without a condition are not interconnected.

GOTO allows to jump to any point of the program. Outside any logical structure.
And we talk about not implemented things now, by the way, if to talk what could help right now.
GoTo statements are not recommended anymore (some languages even don't support them). What I was meaning was that actions Continue loop and Break from loop are 2 ways to break the logic in a macro and skip to 2 different predefined points (beginning and outside loop).

It's not equivalent to a GoTo statement to go anywhere in a program.
 

GamBIT

New member
That's right, it's just no any equivalent to a GoTo. That was a very useful command in some languages.
If Macrodroid's language is extremally simple, so I think it would be great to recall such a useful command from another simple language - BASIC. You even cant imagine how much it can help the macro to become easy-to-program and shorten the macro.
Of course, it's up to the developer of Macrodroid.
 

Dm114

Well-known member
That's right, it's just no any equivalent to a GoTo. That was a very useful command in some languages.
If Macrodroid's language is extremally simple, so I think it would be great to recall such a useful command from another simple language - BASIC. You even cant imagine how much it can help the macro to become easy-to-program and shorten the macro.
Of course, it's up to the developer of Macrodroid.
No, programs nor macros wouldn't be shorter or longer: it's just a matter of conception.
 
Top