Home › Forums › Macros › ElseIf alternative Tagged: ElseIf, EndIf, If This topic has 1 reply, 2 voices, and was last updated 3 years, 7 months ago by Philippe. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts 14 May 2021 at 9 h 25 min #5094 DanielAkerbergMember 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 14 May 2021 at 21 h 21 min #5098 PhilippeKeymaster 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 Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In