Home Forums Macros ElseIf alternative Reply To: ElseIf alternative

#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