Jump to content

Comparing Variables


Recommended Posts

I am trying to compare two variables and I am having no such luck

If $MS1 = >$MS2 Then
      MouseClick("left" , 1008, 95)
      sleep (250)
      MouseClick("left" , 1008, 95)
      sleep (250)
      MouseClick("left" , 892, 379)
   ElseIf $MS1 = <$MS2 Then
      MouseClick("left" , 1008, 95)
      sleep(250)
      MouseClick("left" , 1008, 95)
      sleep (250)
      MouseClick("left" , 892, 450)
   EndIf

This is my string and both variables have been declared

I have attached my error message in the thread if it helps my case at all.

Thanks in advance.

Error message.png

Link to comment
Share on other sites

  • Developers

If you want "greater or equal" then it should be:

If $MS1 >= $MS2 Then

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

×
×
  • Create New...