• BAJA mod by me.

    From Hkb@VERT/TALAMASC/TIME/EXPLORER to All on Thu Nov 5 01:01:00 1998
    I made a nother BAJA mod. It is what Beta was trying to make but inproved... Hkb

    ---
    þ Synchronet þ Explorer - explorer.detour.net 7:00-8:00pm
  • From Beta@VERT/TALAMASC/ROVER to Hkb on Fri Nov 6 06:10:00 1998
    RE: BAJA mod by me.
    BY: Hkb to All on Thu Nov 05 1998 02:01 pm

    I made a nother BAJA mod. It is what Beta was trying to make but inproved...

    Which one that I was trying to make?
    jBeta

    ---
    þ Synchronet þ Um, no DNS lookup yet, my ICQ is 9833063
  • From Hkb@VERT/TALAMASC/TIME/EXPLORER to Beta on Sat Nov 7 07:27:00 1998
    RE: BAJA mod by me.
    BY: Beta to Hkb on Fri Nov 06 1998 07:10 pm

    RE: BAJA mod by me.
    BY: Hkb to All on Thu Nov 05 1998 02:01 pm

    I made a nother BAJA mod. It is what Beta was trying to make but inproved

    Which one that I was trying to make?
    jBeta

    The one that restricted people to doors.

    Here it is.............
    !INCLUDE SBBSDEFS.INC
    compare_ars FLAG 1 Y
    if_false
    compare_ars FLAG 1 N
    if_false
    yes_no "There are doors that might offend people do you want access to them?" if_true
    TOGGLE_USER_FLAG 1 Y
    print "You have access to them, you will only see this once..."
    else
    print "You are restricted to some programs."
    TOGGLE_USER_FLAG 1 N

    ---
    þ Synchronet þ Explorer - explorer.detour.net 7:00-8:00pm
  • From Tommyknocker@VERT/TALAMASC to Hkb on Sat Nov 7 20:42:00 1998
    RE: BAJA mod by me.
    BY: Hkb to Beta on Sat Nov 07 1998 08:27 pm

    !INCLUDE SBBSDEFS.INC
    compare_ars FLAG 1 Y
    if_false
    compare_ars FLAG 1 N
    if_false
    yes_no "There are doors that might offend people do you want access to them? if_true
    TOGGLE_USER_FLAG 1 Y

    Where are you end_if statements?
    TK


    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Hkb@VERT/TALAMASC/TIME/EXPLORER to Tommyknocker on Sun Nov 8 02:25:00 1998
    RE: BAJA mod by me.
    BY: Tommyknocker to Hkb on Sun Nov 08 1998 09:42 am

    RE: BAJA mod by me.
    BY: Hkb to Beta on Sat Nov 07 1998 08:27 pm

    !INCLUDE SBBSDEFS.INC
    compare_ars FLAG 1 Y
    if_false
    compare_ars FLAG 1 N
    if_false
    yes_no "There are doors that might offend people do you want access to th if_true
    TOGGLE_USER_FLAG 1 Y

    Where are you end_if statements?
    TK


    If you look close I am useing
    else
    insted of end_if.

    ---
    þ Synchronet þ Explorer - explorer.detour.net 7:00-8:00pm
  • From Reaper Man@VERT/TALAMASC/TIME/FLAMINT to Hkb on Sun Nov 8 07:23:00 1998
    RE: BAJA mod by me.
    BY: Hkb to Tommyknocker on Sun Nov 08 1998 15:25:00

    If you look close I am useing
    else
    insted of end_if.

    um, you still gotta put your end_if at the end to tell the compiler that you are no longer doing if/then stuff.
    (I'm not BSing, its the same in qb...)

    ---
    þ Synchronet þ Flamin' Torch BBS - The Board on Fire
  • From Beta@VERT/TALAMASC/ROVER to Hkb on Sun Nov 8 10:33:00 1998
    RE: BAJA mod by me.
    BY: Hkb to Beta on Sat Nov 07 1998 08:27 pm

    The one that restricted people to doors.

    Here it is.............
    !INCLUDE SBBSDEFS.INC
    compare_ars FLAG 1 Y
    if_false
    compare_ars FLAG 1 N
    if_false
    yes_no "There are doors that might offend people do you want access to them? if_true
    TOGGLE_USER_FLAG 1 Y
    print "You have access to them, you will only see this once..."
    else
    print "You are restricted to some programs."
    TOGGLE_USER_FLAG 1 N

    Cool.
    Beta

    ---
    þ Synchronet þ Um, no DNS lookup yet, my ICQ is 9833063
  • From Tommyknocker@VERT/TALAMASC to Hkb on Mon Nov 9 08:56:00 1998
    RE: BAJA mod by me.
    BY: Hkb to Tommyknocker on Sun Nov 08 1998 03:25 pm

    If you look close I am useing
    else
    insted of end_if.

    If you look close at page 32 of the Baja Doc that comes with 2.3b release you will see the following.


    END_IF
    This function is used to terminate an IF_... or ELSE code block. Every IF_... function must be followed by an ELSE or END_IF instruction, and every
    ELSE function must be followed by an END_IF.


    Todays lesson in Baja and the END_IF. I have missed this myself, and had a module that ended up in the wrong place at the wrong time. Hope this helps your coding.
    °°±±²²ÑímmæKní€kîr²²±±°°




    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Hkb@VERT/TALAMASC/TIME/EXPLORER to Tommyknocker on Mon Nov 9 20:32:00 1998
    RE: BAJA mod by me.
    BY: Tommyknocker to Hkb on Mon Nov 09 1998 09:56 pm

    Todays lesson in Baja and the END_IF. I have missed this myself, a

    Thank You I will correct my BAJA mod... I just made it for the fun of it...

    ---
    þ Synchronet þ Explorer - explorer.detour.net 7:00-8:00pm
  • From Ksandre Katrius@VERT/TALAMASC/TOD to Reaper Man on Mon Nov 9 23:33:00 1998
    RE: BAJA mod by me.
    BY: Reaper Man to Hkb on Sun Nov 08 1998 20:23:00

    um, you still gotta put your end_if at the end to tell the compiler that you are no longer doing if/then stuff.
    (I'm not BSing, its the same in qb...)

    Ah. I'm glad you pointed that out since it's always been a dilemma for me because Rob's BAJA Manual is very vague about that (it, in fact, _implies_ that an "else" ends an 'if/then' thing without an "end_if" - sort of - you have to _know_ Rob to figure out what he means in his DOCs - that's where having this DOVEnet really _was_ useful - Rob's Manuals assumed such great prior knowledge).

    Uh, sorry for the run-ons!

    ---
    þ Synchronet þ BajaHaus at MEKHET's IFHU TOWER_OF_DESTINY_BBS 603-293-0580
  • From Ksandre Katrius@VERT/TALAMASC/TOD to Tommyknocker on Mon Nov 9 23:36:00 1998
    RE: BAJA mod by me.
    BY: Tommyknocker to Hkb on Mon Nov 09 1998 21:56:00

    END_IF
    This function is used to terminate an IF_... or ELSE code block. Every IF_... function must be followed by an ELSE or END_IF instruction, and every
    ELSE function must be followed by an END_IF.


    <sigh>
    Oh, well....I guess it's good that my BAJAs are redundant as Gertrude Stein! See what I mean though? It does kinda imply that the "ELSE" can be used to terminate an 'if/then.'

    ---
    þ Synchronet þ BajaHaus at MEKHET's IFHU TOWER_OF_DESTINY_BBS 603-293-0580
  • From Ksandre Katrius@VERT/TALAMASC/TOD to Hkb on Mon Nov 9 23:40:00 1998
    RE: BAJA mod by me.
    BY: Hkb to Tommyknocker on Sun Nov 08 1998 15:25:00

    RE: BAJA mod by me.
    BY: Hkb to Beta on Sat Nov 07 1998 08:27 pm

    !INCLUDE SBBSDEFS.INC
    compare_ars FLAG 1 Y
    if_false
    compare_ars FLAG 1 N
    if_false
    yes_no "There are doors that might offend people do you want access to if_true
    TOGGLE_USER_FLAG 1 Y

    Where are you end_if statements?
    TK


    If you look close I am useing
    else
    insted of end_if.


    What about:

    compare_ars NOT $F1Y AND NOT $F1N
    if_true
    yes_no....

    ???

    ---
    þ Synchronet þ BajaHaus at MEKHET's IFHU TOWER_OF_DESTINY_BBS 603-293-0580
  • From Tommyknocker@VERT/TALAMASC to Ksandre Katrius on Sat Nov 14 00:55:00 1998
    RE: BAJA mod by me.
    BY: Ksandre Katrius to Reaper Man on Tue Nov 10 1998 12:33 pm

    because Rob's BAJA Manual is very vague about that (it, in fact, _implies_ t an "else" ends an 'if/then' thing without an "end_if" - sort of - you have t

    The manual very plainly states that an ELSE can end an if/then statements, but the else statetment still requires an end_if.
    °°±±²²ÑímmæKní€kîr²²±±°°


    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Tommyknocker@VERT/TALAMASC to Ksandre Katrius on Sat Nov 14 00:56:00 1998
    RE: BAJA mod by me.
    BY: Ksandre Katrius to Tommyknocker on Tue Nov 10 1998 12:36
    pm

    See what I mean though? It does kinda imply that the "ELSE" can be used to terminate an 'if/then.'

    Yes, an ELSE can terminate an if_then, but then the ELSE need an end_if.
    °°±±²²ÑímmæKní€kîr²²±±°°



    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Tommyknocker@VERT/TALAMASC to Ksandre Katrius on Sat Nov 14 00:59:00 1998
    RE: BAJA mod by me.
    BY: Ksandre Katrius to Hkb on Tue Nov 10 1998 12:40 pm

    What about:
    compare_ars NOT $F1Y AND NOT $F1N
    if_true
    yes_no....

    Well really if_true and yes_no is the same statement. The difference being that the yes_no will print the Y/n lightbar code, and the if_true will follow whatever instruction you have given. I do believe that you would not find a need to use both together like that. If you did, you would need 2 end_if statements.
    °°±±²²ÑímmæKní€kîr²²±±°°


    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Aragorn@VERT/TALAMASC/MARSBASE to Ksandre Katrius on Sat Nov 14 03:52:00 1998
    RE: BAJA mod by me.
    BY: Ksandre Katrius to Tommyknocker on Tue Nov 10 1998 12:36 pm

    END_IF
    This function is used to terminate an IF_... or ELSE code block. Ev IF_... function must be followed by an ELSE or END_IF instruction, and e
    ELSE function must be followed by an END_IF.

    <sigh>
    Oh, well....I guess it's good that my BAJAs are redundant as Gertrude Stein See what I mean though? It does kinda imply that the "ELSE" can be used to terminate an 'if/then.'

    No, wait - it says that every IF_ must be terminated by ELSE or END_IF, _BUT_ it also says that all ELSE functions must be followed by END_IF anyways. Therefore, it outlines two possibilities:

    1. IF...END_IF
    2. IF...ELSE...END_IF

    =)


    ---
    þ Synchronet þ þ Mars Base BBS - (360)882-0773 - Vancouver, WA
  • From Reaper Man@VERT/TALAMASC/TIME/FLAMINT to Ksandre Katrius on Sat Nov 14 23:57:00 1998
    RE: BAJA mod by me.
    BY: Ksandre Katrius to Reaper Man on Tue Nov 10 1998 12:33:00

    Ah. I'm glad you pointed that out since it's always been a dilemma for me because Rob's BAJA Manual is very vague about that (it, in fact, _implies_ t an "else" ends an 'if/then' thing without an "end_if" - sort of - you have t

    WHAT?!?!?!
    yieks, perhaps everyone should take their baja docs and manually change that so it ixplicity says to use an end_if
    Hows my spelling call 1-800-6-BITE-ME

    ---
    þ Synchronet þ Flamin' Torch BBS - The Board on Fire
  • From Reaper Man@VERT/TALAMASC/TIME/FLAMINT to Ksandre Katrius on Sun Nov 15 00:00:00 1998
    RE: BAJA mod by me.
    BY: Ksandre Katrius to Tommyknocker on Tue Nov 10 1998 12:36:00

    END_IF
    This function is used to terminate an IF_... or ELSE code block. Eve IF_... function must be followed by an ELSE or END_IF instruction, and ev
    ELSE function must be followed by an END_IF.
    <sigh>
    Oh, well....I guess it's good that my BAJAs are redundant as Gertrude Stein! See what I mean though? It does kinda imply that the "ELSE" can be used to terminate an 'if/then.'

    hmm, the way I read this is...

    if you have a IF_...
    then I can either put a ELSE or END_IF after it
    but if you put an ELSE after the IF_ then you HAVE to put an END_IF after the else.

    is this easier for you to read and make sense of?

    ---
    þ Synchronet þ Flamin' Torch BBS - The Board on Fire
  • From Reaper Man@VERT/TALAMASC/TIME/FLAMINT to Tommyknocker on Sun Nov 15 00:05:00 1998
    RE: BAJA mod by me.
    BY: Tommyknocker to Ksandre Katrius on Sat Nov 14 1998 13:56:00

    See what I mean though? It does kinda imply that the "ELSE" can be used terminate an 'if/then.'
    Yes, an ELSE can terminate an if_then, but then the ELSE need an end_if.

    um, termninate is not the best word to use since I think that might have been part of the origonal problem.

    you can have either...

    IF_YES
    go_on_mad_rampage
    END_IF

    or...

    IF_YES
    give_user_1000000_ducks
    ELSE
    give_user_mud_pie
    END_IF

    this is the structure that I was taught in class.

    ---
    þ Synchronet þ Flamin' Torch BBS - The Board on Fire
  • From Ksandre Katrius@VERT/TALAMASC/TOD to Tommyknocker on Sun Nov 15 22:22:00 1998
    RE: BAJA mod by me.
    BY: Tommyknocker to Ksandre Katrius on Sat Nov 14 1998 13:55:00

    because Rob's BAJA Manual is very vague about that (it, in fact, _implies an "else" ends an 'if/then' thing without an "end_if" - sort of - you hav

    The manual very plainly states that an ELSE can end an if/then statement but the else statetment still requires an end_if.

    It depends on the context from which viewed how one might interpret the phrasing. My experience of Rob's Manual language is it's vagueness, omitted detail, and assumption of prior knowledge. It's easy to say, after one's total immersion and Synchronet experience that it's "plainly state[d]," but when
    read from a total rookie's perspective it is otherwise in most cases.



    ---
    þ Synchronet þ BajaHaus at MEKHET's IFHU TOWER_OF_DESTINY_BBS 603-293-0580
  • From Ksandre Katrius@VERT/TALAMASC/TOD to Tommyknocker on Sun Nov 15 22:24:00 1998
    RE: BAJA mod by me.
    BY: Tommyknocker to Ksandre Katrius on Sat Nov 14 1998 13:56:00

    Yes, an ELSE can terminate an if_then, but then the ELSE need an end_if.

    I think, even risking redunancy, that instruction should have been made clearer in the manual.

    ---
    þ Synchronet þ BajaHaus at MEKHET's IFHU TOWER_OF_DESTINY_BBS 603-293-0580
  • From Ksandre Katrius@VERT/TALAMASC/TOD to Tommyknocker on Sun Nov 15 22:26:00 1998
    RE: BAJA mod by me.
    BY: Tommyknocker to Ksandre Katrius on Sat Nov 14 1998 13:59:
    00

    Well really if_true and yes_no is the same statement. The difference bein

    I was just quoting Hkb's original BAJA code where that question was first introduced by him - I wasn't thinking through a BAJA module per se.
    (He was asking for a way to make a module check to see if some ARS was NOT present.)

    ---
    þ Synchronet þ BajaHaus at MEKHET's IFHU TOWER_OF_DESTINY_BBS 603-293-0580
  • From Tommyknocker@VERT/TALAMASC to Ksandre Katrius on Mon Nov 16 18:10:00 1998
    RE: BAJA mod by me.
    BY: Ksandre Katrius to Tommyknocker on Mon Nov 16 1998 11:22 am

    It depends on the context from which viewed how one might interpret the phrasing. My experience of Rob's Manual language is it's vagueness, omitted detail, and assumption of prior knowledge. It's easy to say, after one's to

    Well all of us old timers know that Rob was rather terse with his writing, but for the record I am a total rookie, and I have gotten thru my Baja projects to date without to much trouble.
    °°±±²²ÑímmæKní€kîr²²±±°°


    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Tommyknocker@VERT/TALAMASC to Ksandre Katrius on Mon Nov 16 18:15:00 1998
    RE: BAJA mod by me.
    BY: Ksandre Katrius to Tommyknocker on Mon Nov 16 1998 11:24 am

    I think, even risking redunancy, that instruction should have been made clea in the manual.


    ELSE
    ----
    This function marks the end of an IF_... block of code an begins an alternate block of code to be executed if the condition is not met for the IF_... function. The block of code is terminated with an END_IF function.


    I do not see how this can be much plainer, and that is exactally what is in the manual.
    °°±±²²ÑímmæKní€kîr²²±±°°


    ---
    þ Synchronet þ telnet://talamasca-bbs.com http://www.talamasca-bbs.com
  • From Aragorn@VERT/TALAMASC/MARSBASE to Reaper Man on Mon Nov 16 09:20:00 1998
    RE: BAJA mod by me.
    BY: Reaper Man to Tommyknocker on Sun Nov 15 1998 01:05 pm

    IF_YES
    give_user_1000000_ducks
    ELSE
    give_user_mud_pie
    END_IF

    this is the structure that I was taught in class.

    You took a class in BAJA? They don't have END_IF's in QBasic last I checked... (I'm rusty though...)


    ---
    þ Synchronet þ þ Mars Base BBS - (360)882-0773 - Vancouver, WA
  • From Beta@VERT/TALAMASC/ROVER to Aragorn on Tue Nov 17 18:36:00 1998
    RE: BAJA mod by me.
    BY: Aragorn to Reaper Man on Mon Nov 16 1998 10:20 pm

    this is the structure that I was taught in class.

    You took a class in BAJA? They don't have END_IF's in QBasic last I checked. (I'm rusty though...)

    They do, very much so. LOOP, and many other commands won't work unless a END IF is after a IF/ELSEIF/ELSE. Also QB 4.5 and better gets mad at you... :)
    Beta

    ---
    þ Synchronet þ Um, no DNS lookup yet, my ICQ is 9833063
  • From Aragorn@VERT/TALAMASC/MARSBASE to Beta on Fri Nov 20 00:49:00 1998
    RE: BAJA mod by me.
    BY: Beta to Aragorn on Wed Nov 18 1998 07:36 am

    this is the structure that I was taught in class.

    You took a class in BAJA? They don't have END_IF's in QBasic last I chec (I'm rusty though...)

    They do, very much so. LOOP, and many other commands won't work unless a EN is after a IF/ELSEIF/ELSE. Also QB 4.5 and better gets mad at you... :)

    Ah, been a while since I took a class in that (of course, I already new BASIC, and the class was 80% flowcharting)...

    In C, <duck> END_IF's aren't needed in normal code because everything is done in blocks of code which are started and ended by { and } "curly-braces". For example:

    if(something)
    {
    do_something;
    keep_going;
    }
    else
    {
    do_something_else;
    and_stuff;
    }

    The only time something like END_IF is used in C <duck again> to my knowledge is in preprocessor definitions (things that the compiler looks at while compiling the program rather than when the compiled program is run), which work like

    #if something
    do_something
    #else
    do_something_else
    #endif

    (as you can see it's very similar to the BAJA structure) It's very useful for using flags to cause the program to compile differently (e.g. for different compilers or OSes)


    ---
    þ Synchronet þ þ Mars Base BBS - (360)882-0773 - Vancouver, WA
  • From Reaper Man@VERT/TALAMASC/TIME/FLAMINT to Aragorn on Sat Nov 21 12:34:00 1998
    RE: BAJA mod by me.
    BY: Aragorn to Beta on Fri Nov 20 1998 13:49:00

    In C, <duck> END_IF's aren't needed in normal code because everything is don in blocks of code which are started and ended by { and } "curly-braces". For

    thats nice, <slash> but we live in the baja world here <klang> so we know how to handle your curly brackets <chink>
    but this isn't about C is it? <splat>

    ---
    þ Synchronet þ Flamin' Torch BBS - The Board on Fire