-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiftest.dsh
90 lines (77 loc) · 1.58 KB
/
iftest.dsh
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
deck
slide
xv=random 0 50
rv=random 0 50
bv=random 0 50
xval=format "x=%.2f" xv
rval=format "r=%.2f" rv
bval=format "b=%.2f" bv
condx=10
condy=70
text rval 45 condy 3 "mono"
text xval 60 condy 3 "mono"
text bval 75 condy 3 "mono"
ts=3
incr=ts*1.5
c1=condx
condx+=35
condy=60
text "equal to" c1 condy ts "serif"
text "r == x" condx condy ts "mono"
condy-=incr
text "not equal to" c1 condy ts "serif"
text "r != x" condx condy ts "mono"
condy-=incr
text "greater than" c1 condy ts "serif"
text "r > x" condx condy ts "mono"
condy-=incr
text "less than" c1 condy ts "serif"
text "r < x" condx condy ts "mono"
condy-=incr
text "greater than or equal to" c1 condy ts "serif"
text "r >= x" condx condy ts "mono"
condy-=incr
text "less than or equal to" c1 condy ts "serif"
text "r <= x" condx condy ts "mono"
condy-=incr
text "between" c1 condy ts "serif"
text "r >< x b" condx condy ts "mono"
condy=60
condx+=20
if rv == xv
ctext "YES" condx condy 2
eif
condy-=incr
if rv != xv
ctext "YES" condx condy 2
eif
condy-=incr
if rv > xv
ctext "YES" condx condy 2
eif
condy-=incr
if rv < xv
ctext "YES" condx condy 2
eif
condy-=incr
if rv >= xv
ctext "YES" condx condy 2
eif
condy-=incr
if rv <= xv
ctext "YES" condx condy 2
eif
condy-=incr
if rv >< xv bv
ctext "YES" condx condy 2
eif
eslide
slide
rv=random 0 100
xv=random 0 100
textfile "ifelse.dsh" 5 65 3 "mono"
xval=format "x=%.2f" xv
rval=format "r=%.2f" rv
include "ifelse.dsh"
eslide
edeck