TIP: Click on subject to list as thread! ANSI
echo: maximus
to: JOHN ALDRICH
from: JIM BROWN
date: 1998-03-17 18:36:00
subject: Why doesn`t it skip?

Hi John,
 JA> is so low, I dunno... :) Anyway, here's my questionaire (edited to 
 JA> only show the relevant parts):
 JA> [ansreq] Do you run a BBS?
 JA> [READLN] BBS? 
 JA> [ifentered]N [goto L2]
 JA> [ifentered]Y [goto L3]
The problem is right here. What if the user presses something other than 'N' 
or 'Y'? Your script falls through to the "where did you hear" question, 
followed by the "name of bbs" question.
Add a [/L4] infront of the [ansreq] above, and then the following line:
[goto L4]
This will cause the question to be repeated until they type in a valid 
response.
You will also need to reverse the order of the /L2 and /L3 sections in the 
script, as you want to fall through to the "where did you hear" question if 
they do operate a BBS, but you don't want to fall through to it if they 
n't.
Personally, I prefer the [menu] token, as it allows you to trap the enter 
key, thereby allowing for a default response. Rewritten, the first part of 
your script could be:
Do you run a BBS [[Y,n]?
[menu]yn|
[choice]N [goto L3]
BBS Name?
   .
   .
   .
[/L3]Where did you hear about us?
   .
   .
   .
...jim
... Press any key... no, no, no, NOT THAT ONE!
--- Squish/386 v1.11
---------------
* Origin: BitByters BBS, Rockland, Ontario, Canada (1:163/215)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.