~ubuntu-branches/ubuntu/maverick/rrdtool/maverick

« back to all changes in this revision

Viewing changes to doc/rpntutorial.html

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2010-07-22 08:07:01 UTC
  • mfrom: (1.2.8 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100722080701-k46mgdfz6euxwqsm
Tags: 1.4.3-1ubuntu1
* Merge from debian unstable, Remaining changes:
  - debian/control: Don't build against ruby1.9 as we don't want
    it in main.
* require libdbi >= 0.8.3 to prevent aborts when using dbi datasources

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
multiplication operator:</p>
116
116
<pre>
117
117
 1) 128,8,*,7000,GT,7000,128,8,*,IF  eval 128,8,*       result is 1024
118
 
 2) 1024,7000,GT,7000,128,8,*,IF     eval 1024,7000,GT  result is 0
119
 
 3) 0,128,8,*,IF                     eval 128,8,*       result is 1024
120
 
 4) 0,7000,1024,IF                                      result is 1024</pre>
 
118
 2) 1024   ,7000,GT,7000,128,8,*,IF  eval 1024,7000,GT  result is 0
 
119
 3) 0,              7000,128,8,*,IF  eval 128,8,*       result is 1024
 
120
 4) 0,              7000,1024,   IF                     result is 1024</pre>
121
121
<p>Now let's go back to the first example of multiple logic operators,
122
122
but replace the value 20 with the variable &quot;input&quot;:</p>
123
123
<pre>
127
127
<pre>
128
128
 2) A,10,input,IF            eval is A,10,input,IF</pre>
129
129
<p>read &quot;if A then 10 else input&quot;.  Now replace A with it's verbose
130
 
description again and--voila!--you have a easily readable description
 
130
description again and--voila!--you have an easily readable description
131
131
of the expression:</p>
132
132
<pre>
133
133
 if input &gt; 10 then 10 else input</pre>