Goto

Goto[tag]

scans for Label[tag], and transfers control to that point.

Details

  • Goto first scans any compound expression in which it appears directly, then scans compound expressions that enclose this one.

Examples

Basic Examples  (1)

Write a loop using Goto and Label:

Wolfram Research (1988), Goto, Wolfram Language function, https://reference.wolfram.com/language/ref/Goto.html (updated 1996).

Text

Wolfram Research (1988), Goto, Wolfram Language function, https://reference.wolfram.com/language/ref/Goto.html (updated 1996).

CMS

Wolfram Language. 1988. "Goto." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/Goto.html.

APA

Wolfram Language. (1988). Goto. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Goto.html

BibTeX

@misc{reference.wolfram_2024_goto, author="Wolfram Research", title="{Goto}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/Goto.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_goto, organization={Wolfram Research}, title={Goto}, year={1996}, url={https://reference.wolfram.com/language/ref/Goto.html}, note=[Accessed: 22-November-2024 ]}