PHP Classes

File: MathMaxMin.xbt

Recommend this page to a friend!
  Classes of Bob Wedwick   PHP Expert System Engine   MathMaxMin.xbt   Download  
File: MathMaxMin.xbt
Role: Auxiliary data
Content type: text/plain
Description: Xbert rule set
Class: PHP Expert System Engine
Ask questions and make decisions based on answers
Author: By
Last change:
Date: 7 years ago
Size: 1,862 bytes
 

Contents

Class file image Download
/*,, MathMaxMin.xbt - Demonstrates the use of MIN and MAX for XbertClass.php. The command to test for MAX or MIN is passed in the global variable <test>. If the expected global variable <test> is not there it is set to MAX. This can happen when testing this rule set by itself. When <test> is in column 2, it becomes the command to test for minimum or maximum value. When <test> is in column 3, it becomes part of the text being displayed. Strings are compared case insensitive. */ 12 ,isg, <test> ,fal, 11 # when testing this rule set by itself, set the test to MAX 12 ,glo, <test> MAX #,,Setup Local Variables used in testing 11 ,loc, <n1> 7.2 ,loc, <n2> 8.2 ,loc, <n3> 19 ,loc, <n4> 23 ,loc, <v1> that ,loc, <v2> THAT ,loc, <v3> NotTHAT ,loc, <v4> some #,,Numeric Constants ,,--- ,,<test> Numeric constants ,<test>, 7.1 8.8 ,pau,--- <test> Result of 7.1 vs 8.8 in default variable 'response' is <> //,,Numeric Variables ,,--- ,,<test> Numeric Variables <n1> vs <n2> ,<test>, <n1> <n2> ,,--- <test> Result of <n1> vs <n2> is <> ,,--- ,,<test> Numeric variables <n3> vs <n1> result going to variable 'OtherVar' ,<test>, <n3> <n1> <OtherVar> ,pau,--- <test> Result of <n3> vs <n1> in OtherVar is <OtherVar> ,, //,, String Constants ,,--- ,,Strings are compared case insensitive. ,,<test> String constants 'THIS' vs 'that' ,<test>, THIS that ,,--- <test> Result of 'THIS' vs 'that' in default ,pau, variable 'response' is '<>' #,, String Variables ,,--- ,, <test> String Variables '<v1>' vs '<v3>' result going to variable 'OtherVar' ,<test>, <v1> <v3> <OtherVar> ,pau,--- <test> Result of '<v1>' vs '<v3>' in OtherVar is '<OtherVar>' ,,--- ,,<test> String Variables '<v2>' vs '<v4>' result going to variable 'OtherVar' ,<test>, <v2> <v4> <OtherVar> ,pau,--- <test> Result of '<v2>' vs '<v4>' in OtherVar is '<OtherVar>'