Sie können einen STEP-Wert mit den Schlüsselwörtern MODULUS und CONTINUE in einem IF/ENDIF-Block erstellen. WENN es einen Bedarf gibt.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
a= 0 // line offset value
step = 3 // integer
for i = 0 to 32
if i mod step then
continue
endif
// code...
drawtext (a,- 80 ,- 50 - ( a* 12 )) anchor (top ,xshift ,yshift ) coloured ("red" )
drawtext (i,- 40 ,- 50 - ( a* 12 )) anchor (top ,xshift ,yshift )
a= a+ 1
next
return
/* step = 3
if i = 0 then 0 / 3 = 0 remainder 0 **
if i = 1 then 1 / 3 = 0 remainder 3
if i = 2 then 2 / 3 = 0 remainder 3
if i = 3 then 3 / 3 = 1 remainder 0
...
...
** Since 0 divided by any non-zero number equals zero
*/
3 users thanked author for this post.