running a sequence over subperiods
Posted: Fri Jul 07, 2023 5:20 am
Hi, I want to run over two subperiods [1, !d-1] and [!d, !n] defined as the strings subp1 and subp2, the SAME list of instructions where a time increment !i is used. One way of doing this is :
smpl {subp1}
for !i=1 to !d-1
list of instructions
next
smpl {subp2}
for !i=!d to !n
list of instructions
next
There is surely a shorter way of programming this without repeating the list of instructions. Is there?
Thanks
smpl {subp1}
for !i=1 to !d-1
list of instructions
next
smpl {subp2}
for !i=!d to !n
list of instructions
next
There is surely a shorter way of programming this without repeating the list of instructions. Is there?
Thanks