Is there a way to refer, or go back to a part of a code
Hey all,
Is there a way to goto or refer to a previous part of a code from another part. What I have is a window showing the viewer 2 buttons, I want to make it go back to that home screen after they click on one of the two buttons. I included the part of the code below, so if they click button "text" after they read This is a program and click Ok, it should go back to the first display dialog.Any ideas??
display dialog ¬
"Sample Text" buttons {"Text, "Text 2}
if button returned of result is "What is this" then
display dialog ¬
"This is a program" buttons {"Ok"}
else
display dialog ¬
"Text Text Text"
Thanks a lot, AppleTardis
MacBook Air, Other OS