File: if-test.turtle

package info (click to toggle)
kturtle 4%3A25.04.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,392 kB
  • sloc: cpp: 7,717; ruby: 2,217; xml: 243; makefile: 3; sh: 3
file content (14 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
kturtle-script-v1.0
@(reset)
$a = 0
@(repeat) 2 {
  $a=$a+1
	@(if) $a==1 {
    @(print) "If odd value ok"
  }
	@(forward) 15
  @(if) $a==2 {
    @(print) "If even value ok"
  }
  @(forward) 15
}