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.
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
| Sysop: | digital man |
|---|---|
| Location: | Riverside County, California |
| Users: | 1,189 |
| Nodes: | 17 (0 / 17) |
| Uptime: | 159:08:15 |
| Calls: | 509,803 |
| Calls today: | 8 |
| Files: | 254,985 |
| U/L today: |
1 files (188K bytes) |
| D/L today: |
5,967 files (1,271M bytes) |
| Messages: | 471,886 |
| Posted today: | 3 |