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

« back to all changes in this revision

Viewing changes to doc/rpntutorial.pod

  • 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:
86
86
multiplication operator:
87
87
 
88
88
 1) 128,8,*,7000,GT,7000,128,8,*,IF  eval 128,8,*       result is 1024
89
 
 2) 1024,7000,GT,7000,128,8,*,IF     eval 1024,7000,GT  result is 0
90
 
 3) 0,128,8,*,IF                     eval 128,8,*       result is 1024
91
 
 4) 0,7000,1024,IF                                      result is 1024
92
 
 
 
89
 2) 1024   ,7000,GT,7000,128,8,*,IF  eval 1024,7000,GT  result is 0
 
90
 3) 0,              7000,128,8,*,IF  eval 128,8,*       result is 1024
 
91
 4) 0,              7000,1024,   IF                     result is 1024
93
92
 
94
93
Now let's go back to the first example of multiple logic operators,
95
94
but replace the value 20 with the variable "input":
102
101
 2) A,10,input,IF            eval is A,10,input,IF
103
102
 
104
103
read "if A then 10 else input".  Now replace A with it's verbose
105
 
description again and--voila!--you have a easily readable description
 
104
description again and--voila!--you have an easily readable description
106
105
of the expression:
107
106
 
108
107
 if input > 10 then 10 else input