[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.2 Syntax

All symbols are not case-sensitive.

{<whiteSpace>} at the start of the line will be ignored.

All keywords are evaluated as occurring, the first matching keyword found is valid. If there are more then one keywords of the same type allowed, the last line matching the situation is valid. Another words: second definition overwrite the previous one. If no match is found, a default-value will be used.

"#" at the start of a line or <whiteSpace>#<whiteSpace> within the line starts a comment. The comment ends with the line.

If the first word in a line is an undefined keyword, program exits with error message.

Each keyword has to start a new line.

Keyword parameters:

<integer>
string including integer numbers, like: 1234567890
<string>
text string
<bool>
may be set to "1", "0", "yes", "no", "on", "off", and also without parameters (it means "on").
<addr>
address string like zone:net/node[.point][@domain]
example: 2:5000/117
<file>
file name. path can be omitted.
<path>
only path. trailing slash may be included or not.

Note! [<parameter>] means that it can be omitted.

FIDOCONFIG library can set up internal variables:
 
set basedir=/home/user/fido/

[OS] variable automatically setting up for following opetaring systems:

UNIX
All unix-like OS: Linux, *BSD, BeOS, ...
OS/2
WIN
MSDOS

You can set something like:
 
if [OS]==UNIX
tearline `uptime`
endif

Some programs can be compiled with module variavle. It can be used for config parsing speed up:

 
if [module]==htick
include /etc/ftn/fileareas
endif

And if HPT is running, fileareas don't parsed, because [module]==hpt.

There are following modules available:

hpt (Highy Portable Tosser)
htick (Husky Tick)
hptutil

Also external variables van be parsed:
 
autoexec.bat:
SET VAR=myvar

fidoconfig:
if [VAR]==myvar
...
else
...
endif

ifdef UNIX
MsgBaseDir  [home]/msgbase
endif

You can use external programs output via `cmd`. It is available only for UNIX & OS/2+EMX:
 
Name Power Station under `uname -mrs`

List of the additional commands:

set, if, if not, else, elseif, ifdef, ifndef, endif.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Pavel Andreew on August, 28 2002 using texi2html