PHP Classes

File: YesNoTest.xbt

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

Contents

Class file image Download
/* ,, YesNoTest.xbt A test file for Xbert user responses. The user does not see these multi-line comment lines. Other single line comments are included in this test. They include using // ; # and blank lines, lines not having three columns and lines with three blank columns. */,, ,,- - - >> ,,By default, we start with node 1. ,,Answer with 'Y', blank or yes to advance to different nodes. ,,If you answer NO now, we skip the whole test. ,askyes,Continue? #,, This is a single comment line. 4 ,,--- ,,Advanced to node 4. ,,The Yes/No reply only looks at the 1st character ,, which is not case sensitive. ,,If you answer any question with "abort" processing stops immediately. ,ASKyes,Go beyond node 4? +2 ,,---- ,,So you wanted to go farther. ,, If response had been NO, this would not display. -- This comment line is ignored because it does not have 3 columns. ,, ,ASKno, Now at node 6. Do you want to skip going farther? ,,You are now going little farther to node 8. But that is all there is to see. +2 ,asky,Take a shortcut to get back? ,fal,2 7 ,pau, - - - Okay, we will retreat slowly. Now back a little bit. ,fal,3 6 ,pau,That is okay, node 6 is still good.. ,fal,3 4 ,pau,---Remained at node 4. Retreating. ,fal,2 3 ,,--- 4 ,pau,Now at node 4. ,, 2 ,,--- ,,Now branched to node 2. ,, ,, ---Almost done.--- ,ASK,"Answer with any message. How did you like this?" ,,--- ,pau,You really said "<>"!!! ,end, 1 ,pau,WOW -- no adventure at all!