Sign in to follow this  
Followers 0
Mulnore

Undefined Function?

4 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



#3 ·  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

Share this post


Link to post
Share on other sites

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

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  
Followers 0