supernova: c++11 compile fixes
[supercollider.git] / Help / Core / Boolean.html
blob3fcd4805cdbaf94bc3b829d9e5f9f529e8769876
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="949.43">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica}
11 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
13 span.s1 {color: #0000ff}
14 </style>
15 </head>
16 <body>
17 <p class="p1"><b>Boolean</b></p>
18 <p class="p2"><br></p>
19 <p class="p3"><b>superclass: Object</b></p>
20 <p class="p2"><br></p>
21 <p class="p3">Boolean is an abstract class whose instances represent a logical value.<span class="Apple-converted-space"> </span></p>
22 <p class="p3">Boolean is the superclass of True and False which are the concrete realizations.</p>
23 <p class="p3">In code True and False are represented by the literal values true and false.</p>
24 <p class="p2"><br></p>
25 <p class="p3"><b>xor(aBoolean)</b></p>
26 <p class="p2"><br></p>
27 <p class="p3">Answers the exclusive or of the receiver and another Boolean.</p>
28 <p class="p2"><br></p>
29 <p class="p3"><b>and(function)</b></p>
30 <p class="p3"><b>and: function</b></p>
31 <p class="p2"><br></p>
32 <p class="p3">If the receiver is true then answer the evaluation of function.</p>
33 <p class="p3">If the receiver is false then function is not evaluated and the message answers false.</p>
34 <p class="p2"><br></p>
35 <p class="p3"><b>or(function)</b></p>
36 <p class="p3"><b>or: function</b></p>
37 <p class="p2"><br></p>
38 <p class="p3">If the receiver is false then answer the evaluation of function.</p>
39 <p class="p3">If the receiver is true then function is not evaluated and the message answers true.</p>
40 <p class="p2"><br></p>
41 <p class="p3"><b>&amp;&amp; aBoolean</b></p>
42 <p class="p2"><br></p>
43 <p class="p3">Answers true if the receiver is true and aBoolean is true.</p>
44 <p class="p2"><br></p>
45 <p class="p3"><b>|| aBoolean</b></p>
46 <p class="p2"><br></p>
47 <p class="p3">Answers true if either the receiver is true or aBoolean is true.</p>
48 <p class="p2"><br></p>
49 <p class="p3"><b>nand(aBoolean)</b></p>
50 <p class="p3"><b>nand: aBoolean</b></p>
51 <p class="p2"><br></p>
52 <p class="p3">Answers true unless both the operands are true (Sheffer stroke)</p>
53 <p class="p2"><br></p>
54 <p class="p3"><b>not</b></p>
55 <p class="p2"><br></p>
56 <p class="p3">Answers true if the receiver is false, and false if the receiver is true.</p>
57 <p class="p2"><br></p>
58 <p class="p2"><br></p>
59 <p class="p3"><b>if( trueFunc, falseFunc )</b></p>
60 <p class="p2"><br></p>
61 <p class="p3">If the receiver is true, answer the evaluation of the trueFunc. If the receiver is false, answer the evaluation of the falseFunc.</p>
62 <p class="p2"><br></p>
63 <p class="p3"><b>binaryValue</b></p>
64 <p class="p2"><br></p>
65 <p class="p3">Answer 1 if the receiver is true, and 0 if the receiver is false.</p>
66 <p class="p2"><br></p>
67 <p class="p3"><b>booleanValue</b></p>
68 <p class="p2"><br></p>
69 <p class="p3">Return receiver. The same message is understood by <a href="../Math/SimpleNumber.html"><span class="s1">SimpleNumber</span></a><span class="s1"> </span>and can be used to convert it to boolean.</p>
70 <p class="p2"><br></p>
71 </body>
72 </html>