Jump to content
Sign in to follow this  

Syntax error why?

Recommended Posts


Func Square()
    $x = InputBox("Square","Which # to square?")
    $y = $x * $x
    Msgbox(0,"Square",$x & "Squared is:" & $y)
Func SquareRoot()
    $a = InputBox("Sqrt","Which # to sqrt?")
    $b = 0
        $b = $b + 1
        If $a < $b * $b Then
            Msgbox(0,"Sqrt", $a & "is not a perfect square")
        ElseIf $a = $b * $b Then
            Msgbox(0,"Sqrt", $b & "is the sqrt of" & $a)
            Exit 0
        Until $a = $b * $b

>Running AU3Check ( from:C:\Program Files\AutoIt3

C:\Users\Steve\Desktop\New AutoIt v3 Script.au3(21,19) : ERROR: syntax error

Until $a = $b * $b


Problem solved.... Missing EndFunc....

Edited by SniperSA

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this