Beginner
4
Execute a loop over a specified range
RANK
AZSTOKe_sample_for_loop
def Msg(parm):
RPR_ShowConsoleMsg(str(parm)+"\n")
Msg("test1")
for i in range(3):
Msg(i)
Msg("test2")
for i in range(3,6):
Msg(i)
Msg("test3")
for i in range(1,6,2):
Msg(i)
Msg("test4")
for i in range(5):
Msg(i)
if i == 3:
break
Msg("test5")
for i in range(2,5):
if i % 2 == 0:
Msg(i)
continue
Msg(i+20)
def Msg(parm):
RPR_ShowConsoleMsg(str(parm)+"\n")
A function that outputs the input value to the Reaper console.
Msg("test1")
"test1" is displayed on the console
for i in range(3):
Msg(i)
For statement range3 loops "0, 1, 2"
Msg("test2")
for i in range(3,6):
Msg(i)
Msg("test3")
for i in range(1,6,2):
Msg(i)
Msg("test4")
for i in range(5):
Msg(i)
if i == 3:
break
Msg("test5")
for i in range(2,5):
if i % 2 == 0:
Msg(i)
continue
Msg(i+20)
No preparation required