PHP Classes

File: Nodes.xbt

Recommend this page to a friend!
  Classes of Bob Wedwick   PHP Expert System Engine   Nodes.xbt   Download  
File: Nodes.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: 904 bytes
 

Contents

Class file image Download
/*,,Nodes.xbt -- This shows how to use Yes-No questions to either process or skip nodes. Also shows how to use a variable for a node number and that node values are floating point. */ 33,, Starting at node 33. ,, <<<<< # ,,Note that global variable <fifty-five> can be used both as a node value and a value for addition. ,glo, <fifty-five> 55 ,,Showing how nodes work. ,,"YES" (or just 'Enter') takes us to node 55. ,ASKY,NO skips to node 33 or less -- that being node 32.9. <fifty-five>,add, 4 <fifty-five> , , ,, - - - - ,pau,You replied YES. We are at node 55 and added 4 to 55 to get <>. ,, 32.9 ,ASKN,Got back to to node 32.9. Skip to node 22? ,, ,, - - - - ,,You replied NO to skipping to node 22. ,, Still hanging around at node 32.9 and continuing the conversation. ,, This line should be displayed, but nothing to do! 22 ,, ,, - - - - ,pau,Dropped to node 22. We are done. Okay?