Author Topic: If-else statement not working inside wait for mouse input indefinite loop  (Read 173 times)

Jeremiah

  • Newbie
  • *
  • Posts: 6
My command isn't working, can anyone help?

Code: [Select]
Start Indefinite Loop
    Wait for mouse button press [Any Button]
    Begin Small Integer Compare : [~mouse] Equals 1
        Press A key and hold for 0.1 seconds and release
    Else If Small Integer Compare : [~mouse] Equals 2
        Press B key and hold for 0.1 seconds and release
    Else If Small Integer Compare : [!mouse] Equals 3
        Press C key and hold for 0.1 seconds and release
    End Condition
End Loop

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2828
As Gangrel had pointed out in the discussion opened on Discord, your third usage of variable name '~mouse' has been replaced with variable name '!mouse'.

Jeremiah

  • Newbie
  • *
  • Posts: 6
Yea, also SemlerPDX pointed out that I'm suppose to use integer compare, and not small integer.