File: PooPsalah.fth

package info (click to toggle)
fcode-utils 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 46,768 kB
  • sloc: ansic: 9,717; csh: 241; makefile: 129; sh: 17
file content (34 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (20)
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
\  FLoadable body for various conditional tests, based on the value of
\      a constant named "poopsalah?"  (Okay, so I was running out of ideas...)

." Begin Nested ""Constant"" Test Test"
f[ poopsalah? f] [if]
[message]  The TRUE path has wisely been chosen, Poopsalah!
   ." Is True, level 1"
   f[ poopsalah? f] [if]
       " Is True and is True, level 2"
   [else]
       " Is True but is Not True.  What?"
   [then]
   ." Middle of level 2"
   f[ poopsalah? 0= f] [if]
       " Is True and is False.  What?"
   [else]
       " Is True and is Not False, level 2"
   [then]
[else]
[message]  Oy, Poopsalah.  You have foolishly chosen the FALSE path.
   ." Is Not True, level 1"
   f[ poopsalah? f] [if]
       " Is Not True but is True.  What?"
   [else]
       " Is Not True and is Not True, level 2"
   [then]
   ." Middle of Not level 2"
   f[ poopsalah? 0= f] [if]
       " Is Not True and is False, level 2"
   [else]
       " Is Not True and is Not False.  What?"
   [then]
\  Missing a [then]