{"identifier":38981,"topic":"Commands","name":"go","text":"<code>go <\/code>[<code>to<\/code>]<code> <i>ordinal<\/i> go <\/code>[<code>to<\/code>]<code> <i>position<\/i> <br><br>\n\n go <\/code>[<code>to<\/code>]<code> <i>card<\/i> <\/code>[<code>of <i>bkgnd<\/i><\/code> ]<code> <\/code>[<code>of <i>stack<\/i><\/code> ] <code> go <\/code>[<code>to<\/code>]<code> <i>bkgnd<\/i> <\/code>[<code>of <i>stack<\/i><\/code> ]<code> go <\/code>[<code>to<\/code>]<code> <i>stack<\/i> <br><br>\n\n go <\/code>[<code>to<\/code>]<code> <\/code>[<i><code>card<\/i> of<\/code>]<code> <\/code>[<i><code>bkgnd<\/i> of<\/code> ]<code> <i>stack<\/i><\/code> \u00ac       [<code>in a new window<\/code>]<code> <\/code>[<code>without dialog<\/code>] <br><br>\n\n The<code> go <\/code>command takes the user to a card in a stack. The<code> <i>ordinal<\/i> <\/code>and<code> <i>position<\/i> <\/code>forms take the user to a card in the current stack. <br>\n<br>\n If you name a stack (or background) without specifying a card, HyperCard goes to the first card of the stack (or background).  <br><br>\n\n HyperCard puts<code> empty <\/code>into the function<code> the result <\/code>when the<code> go <\/code>command succeeds; it puts<code> \"No such card.\" <\/code>or<code> \"No such stack.\"<\/code> into<code> the result <\/code>when it can\u2019t go to the card or stack. <br>\n","related":{"27092":null,"11943":null,"40922":"lock","75037":"lockMessages","75404":"lockRecent","75546":"lockScreen","41060":"mark","44101":"pop","45173":"push","50046":"unlock","50441":"visual"},"examples":"--Go to an ordinal in the current stack (referring to cards):\ngo first\ngo last\ngo second\ngo third\n\n--Go to a position in the current stack (referring to cards):\ngo this\ngo next\ngo prev\n\n-- Go to a different card, perhaps in a different stack:\ngo back -- could be in another stack\ngo forth -- could be in another stack\ngo card 4\ngo card id 23405\ngo first card\ngo next card\ngo previous card\ngo recent card -- could be in another stack\ngo last card\ngo mid card\ngo any card\ngo first card of bkgnd 2\ngo card 1 of second bkgnd of stack \"My Stack\"\n\n-- Go to a different background in the current stack:\ngo bkgnd \"Index\"\ngo bkgnd \"Index\" of stack \"My Stack\"\n\n-- Go to a different stack:\ngo to stack \"Address\"\ngo stack \"Address\"\ngo \"Address\"\ngo home  \ngo help\n\n-- Use full pathname:\ngo \"Simonides:Fly II:Current Fly:Help\" \n\n-- Go to new stack, but open it in a new window:\ngo stack \"My Stack\" in a new window\nif the result is not empty then ... -- couldn't open it in a new window\n\n-- Go to a new stack, but skip the dialog asking where the stack is if -- HyperCard can't find it:\ngo stack \"My Stack\" without dialog\nif the result is not empty then ... -- didn't go there\n\n-- Go to a new stack,open it in a new window, and skip the dialog:\ngo to stack \"Home\" in new window without dialog","demo":"on goFirstCardAndBack\n   set cursor to watch\n   set lockMessages to true -- to leave the demo script up\n   <b>go<\/b> first card\n   <b>go<\/b> back\n end goFirstCardAndBack\n <br><br>\n\n ","debug":{"9":["go [to] ordinal\rgo ["],"10":["\rIf you name a stack"]}}