dynamitemedia
15 years agoBinge Watcher
for loop question
i want to use a for loop to get video files from a list.
example file list:
this works to get the "number" of the videos i want.
but this only returns the "Number", so what do i need to do to add a number at the end of the video file?
i have tried adding a few different ways but i always get a type mismatch error.
arrays and loops confuse me so much at times, even in php... any help would be appreciated
example file list:
- video-1.mp4
video-2.mp4
video-3.mp4
video-4.mp4
this works to get the "number" of the videos i want.
videoNum=0
for i=1 to 4
videoNum = videoNum +1
print "video number is"; videoNum
end for
but this only returns the "Number", so what do i need to do to add a number at the end of the video file?
i have tried adding a few different ways but i always get a type mismatch error.
arrays and loops confuse me so much at times, even in php... any help would be appreciated