X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frpntutorial.pod;h=0ab3131752669110447fa00765fd0d1fdba7be55;hp=b830f2700cc3a55bf2c77241cdb801a7c60c95aa;hb=2c16b54029a3f5f08899c15d82c78a3a23d99e94;hpb=b69a1a9abc9afdc2bfb23b84e28c2afb0b1a5e09 diff --git a/doc/rpntutorial.pod b/doc/rpntutorial.pod index b830f27..0ab3131 100644 --- a/doc/rpntutorial.pod +++ b/doc/rpntutorial.pod @@ -86,10 +86,9 @@ Let's read a complex RPN expression that also has the traditional multiplication operator: 1) 128,8,*,7000,GT,7000,128,8,*,IF eval 128,8,* result is 1024 - 2) 1024,7000,GT,7000,128,8,*,IF eval 1024,7000,GT result is 0 - 3) 0,128,8,*,IF eval 128,8,* result is 1024 - 4) 0,7000,1024,IF result is 1024 - + 2) 1024 ,7000,GT,7000,128,8,*,IF eval 1024,7000,GT result is 0 + 3) 0, 7000,128,8,*,IF eval 128,8,* result is 1024 + 4) 0, 7000,1024, IF result is 1024 Now let's go back to the first example of multiple logic operators, but replace the value 20 with the variable "input": @@ -102,7 +101,7 @@ with "A": 2) A,10,input,IF eval is A,10,input,IF read "if A then 10 else input". Now replace A with it's verbose -description again and--voila!--you have a easily readable description +description again and--voila!--you have an easily readable description of the expression: if input > 10 then 10 else input