Jump to content

Recommended Posts

Posted (edited)

If winexists ( "blah blah", "blah blah" ) then

call ( "blah" )

else call ( "blah" )

endif

C:\Program Files\AutoIt3\Projects\blah.au3(53,6) : ERROR: syntax error

else call

~~~~^

C:\Program Files\AutoIt3\Projects\blah.au3(51,18) : ERROR: blah(): undefined function.

call ( "blah" )

~~~~~~~~~^

Why am I getting this? Obviously I am new..

Edited by Mulnore
Posted (edited)

Thank you :mellow: that worked but.. Could you explain exactly what was wrong? The way I had it positioned I know but I want to understand it.

Edited by Mulnore
Posted

A fair number of AutoIt keywords must be the only statement on a line

among them Else, everything starting with End or Exit, Next, ....

In general, the excellent help file will show you in an example how to

use a certain command, just press F1 with your cursor sitting right

before a command.

Another remark: you will not usually need Call to start a built-in or

self-defined function

HTH,

whim

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...