Using $goto during execution - possible? Topic is solved

Problems with syntax of GAMS
Post Reply
AndrewC
User
User
Posts: 17
Joined: 5 years ago

Using $goto during execution - possible?

Post by AndrewC »

We have some code where it would be very useful if we could do a $goto jump during execution.

For example at the beginning read in some data, and if we know there is an issue with the data then do a $goto jump to the end. The conditional would be a scalar value only known during execution.

is this possible?
User avatar
bussieck
Moderator
Moderator
Posts: 1043
Joined: 7 years ago

Re: Using $goto during execution - possible?

Post by bussieck »

Nope. There is no execution time goto. The only controls you have to influence the flow of execution are break, continue (in loops), abort[.noError] to terminate, and if/elseif/else.

-Michael
Post Reply