File: do-if.stat

package info (click to toggle)
pspp 0.3.0-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,288 kB
  • ctags: 4,679
  • sloc: ansic: 57,209; sh: 2,874; makefile: 405; sed: 93; perl: 18
file content (24 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
title 'Test DO IF control structure'.

data list /x y z 1-6.
begin data.
000099
019900
019820
001089
020000
end data.
do if x~=2.
loop i=1 to x.
do if x=0.
print /i x z.
else.
do if x=1.
print /i x y.
else.
print /i 'Huh?'.
end if.
end if.
end loop.
end if.
execute.