Jump to content

Recommended Posts

Posted

hi there

if you got a script like this:

$variable = 12
if 1234 = $variable then
...
endif

that does something if 1234 is the same as the variable.

But is there a way to make it do something if the variable isn't the same?

I've looked in the help file but can't find anything.

Posted

If...ElseIf...Else...EndIf

--------------------------------------------------------------------------------

Conditionally run statements.

If <expression> Then

statements

...

[ElseIf expression-n Then

[elseif statements ... ]]

...

[Else

[else statements]

...

EndIf

Source : Autoit Helpfile ( F1 )

Posted

If...ElseIf...Else...EndIf

--------------------------------------------------------------------------------

Conditionally run statements.

If <expression> Then

statements

...

[ElseIf expression-n Then

[elseif statements ... ]]

...

[Else

[else statements]

...

EndIf

Source : Autoit Helpfile ( F1 )

Thanks but not what I was looking for :idea:

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...