AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to VBBS Hints & Tips  <--  <--- Return to Home Page
   Local Database  VBBS Hints & Tips   [15 / 250] RSS
 From   To   Subject   Date/Time 
Message   KoZmiK KaTman    The Great Oz   SCRIPTS   December 15, 1995
 7:03 PM *  

Re: SCRIPTS

> $flags                  -       Flags As in like (I) Setting In USER-Edit
> $a = $flags instr A
> if $a > 0 then
> tr "Autopost Is Turned OFF "
> endif
> else
> tr "Autopost Is Turned ON"
> $videomode              -       Users Videomode Setting
> if $videomode = 0 then
> tr a$
> endif
> else
> if $videomode = 1 then
> tr $B
> endif
> else
> if $vvideomode = 2 then
> tr C$
> endif
> else
> if $videomode = 3 then
> tr D$
> endif

There are some big problems in these examples.  First off, when the variable
contains numeric value, as all examples quoted above do, then do not use the
"IF" command, but rather the "IFVAL" command.  Secondly, you cannot use an
"ELSE" command after an "ENDIF" command.  Simply use the "ENDIF" command and
another "IF" or "IFVAL" command for the next variable check, again being
terminated by an "ENDIF" command until all the possibilities are expired.
Only when you are checking for one distinct possibility should you consider
using the "ELSE" command.  And one more small point... there really is no
need to put the "THEN" statement in your "IF" or "IFVAL" commands as these
commands will work just the same if you don't put it in there.

      --- KoZmiK KaTman ---
              <VPI>
 

                EMERALDnet(RC) VPInet(NC) Fidonet VirtualNET SGA-Net(RC)
  �y�r��ti��   Dallas, TX  110 Doors / 3 gig  Home of V-Pro Industries <VPI>
                DM/F! VFC (214)394-8021 for networks, (214)394-4837 for users
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to VBBS Hints & Tips  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0164 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.241108