label GetNum
display dialog "Please enter a number less than 100:" default answer "50"
set theText to text returned of the result as number
if theText is not less than 100 then
go to GetNum --this is what I am wondering: can AS go back to "label GetNum" without using handlers?
end if
there is no “label” and “go to” statements in AppleScript.
But you can do the same thing with a repeat block
repeat
display dialog "Please enter a number less than 100:" default answer "50"
set theText to text returned of the result as number
if theText is less than 100 then exit repeat
end repeat