Template:Repeat

From OpenKore Wiki
Revision as of 21:27, 3 July 2019 by 4epT (talk | contribs) (Created page with " <noinclude>This template describes the '''repeat''' parameter of the automacro eventMacros.</noinclude> ; repeat <number> :* '''repeat''' is an...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This template describes the repeat parameter of the automacro eventMacros.
repeat <number>
  • repeat is an optional parameter.
  • repeat defines how many times the macro defined by call will be called.
  • If not used in the automacro the default value will be used, which is: 1.
  • Must have a numeric value.
automacro <automacro name> {
    <automacro conditions and parameters (and only them)>
    repeat 3
    call myMacro
}
macro myMacro {
    <macro instructions (and only them, as this is regular macro)>
    log This message will be printed 3 times, because the macro will be called 3 times
}