• Knowing groups & areas

    From Tegularius@VERT/BAUDHOUS to All on Saturday, October 01, 2005 19:30:00
    DEFAULT.SRC provides for displaying the user's current
    message and file areas in the prompt with code like
    @LIB@ and @DIR@.

    How can I access these values so that I can branch
    in Baja code? I don't see any functions or system
    variables listed in the documentation that corresponds
    to these conditions.

    I want to display a menu that is specific to the
    file library a user is currently in.

    Thanks for your help! I'm a beginner.



    ---
    þ Synchronet þ Bauding House
  • From Digital Man@VERT to Tegularius on Sunday, October 02, 2005 14:25:11
    Re: Knowing groups & areas
    By: Tegularius to All on Sat Oct 01 2005 07:30 pm

    DEFAULT.SRC provides for displaying the user's current
    message and file areas in the prompt with code like
    @LIB@ and @DIR@.

    How can I access these values so that I can branch
    in Baja code? I don't see any functions or system
    variables listed in the documentation that corresponds
    to these conditions.

    I want to display a menu that is specific to the
    file library a user is currently in.

    Thanks for your help! I'm a beginner.

    DEFAULT.SRC is a Baja module. This is the JavaScript Programming message area. :-)

    That said, here's a Baja code snippet to do what you're asking:

    compare_ars sub=general
    if_true
    print "You're in the general sub-board"
    end_if

    digital man

    Snapple "Real Fact" #179:
    The first lighthouse to use electricity was the Statue of Liberty in 1886.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Telugarius on Sunday, October 02, 2005 15:05:42
    Re: Knowing groups & areas
    By: Digital Man to Tegularius on Sun Oct 02 2005 02:25 pm

    Re: Knowing groups & areas
    By: Tegularius to All on Sat Oct 01 2005 07:30 pm

    DEFAULT.SRC provides for displaying the user's current
    message and file areas in the prompt with code like
    @LIB@ and @DIR@.

    How can I access these values so that I can branch
    in Baja code? I don't see any functions or system
    variables listed in the documentation that corresponds
    to these conditions.

    I want to display a menu that is specific to the
    file library a user is currently in.

    Thanks for your help! I'm a beginner.

    DEFAULT.SRC is a Baja module. This is the JavaScript Programming message are :-)

    That said, here's a Baja code snippet to do what you're asking:

    compare_ars sub=general
    if_true
    print "You're in the general sub-board"
    end_if

    There's actually a bug in the current Baja compiler which causes it to crash when compiling the above code. :-(

    Here's a workaround:

    compare_ars sub=general and user 0

    digital man

    Snapple "Real Fact" #11:
    Flamingos are pink because they eat shrimp.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net