File: ifelse.htp

package info (click to toggle)
htp 1.19-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,272 kB
  • sloc: ansic: 6,645; perl: 204; makefile: 60
file content (37 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (7)
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
30
31
32
33
34
35
36
37
<set y=1>
<set x=1>
<while not x=4>
  <if y=1>
    <if x=1>

Apple
    <elseif x=2>

Banana
    <else>
       <set y=2>
       <set x=0>
    </if>
  <else>
    <if x=1>

Cherry
    <elseif x=2>

Durian
    <else>

Elderberry
    </if>
  </if>
  <inc x=1>
</while>

<set x=1>
<while not x=3>
wstest<if x=1>
then-part<else>
else-part</if>
afterif
<inc x>
</while>