tutorials/beginner
03_guess_once.abs
18 lines of ArcBasic. Words in colour that are commands link to their help page. To run it, download ArcBasic, open the file and press F5.
; Guess my number - one trySeedRnd MilliSecs() ; a different secret number every timesecret = Rand(1, 10)guess = Input("I'm thinking of a number from 1 to 10. Your guess? ")If guess = secret Then Print "Amazing - you got it!"ElseIf guess < secret Then Print "Too low. It was " + secret + "."Else Print "Too high. It was " + secret + "."EndIfWaitKeyEnd
