Home Forums Macros ElseIf alternative

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5094

    Hi,

    I wanted to write some logic with different possible outcomes using If and elseIf statements like:

    If {}
    Action 1
    ElseIf {}
    Action 2

    EndIf

    I couldn’t find the ElseIf function in Logelloop. Is there an alternative function that would accomplish this?

    //
    Daniel

    #5098
    Philippe OllivierPhilippe
    Keymaster

    Hi Daniel,
    You can use some If // EndIf verification.
    As it is below :

    DoRepeat

    If {$state_record$ == true}
    Message “Recording in action”
    EndIf

    If {$state_overdub$ == true}
    Message “Overdub in action”
    EndIf

    Sleep 100

    While true

    If needed, you can stop the macro after a true action like this :

    If {$state_record$ == true}
    Message “Recording in action”
    MacroStop
    EndIf

    So that, the macro will not test everything every time.
    Philippe

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.