Subj : System Variables...
To   : High Spirit
From : Angus McLeod
Date : Wed Apr 09 2008 07:24 pm

 Re: System Variables...
 By: High Spirit to DOVE-Net.Synchronet_Baja on Wed Apr 09 2008 12:53:00

> How do I do a math operation (ADD, SUB, DIV, MUL) to a system variable like
> @STATS.LOGONS@?
>
> For example, divide STATS.LOGONS (total logons during history of system) by
> 7 to get the average calls per day... (just an example, not really the value
> I'm looking for).

@CODES@ as embedded in menus and other text screens aren't variables in
the programatic sense.  They are substitution codes that are textually
replaced in ASCII/ANSI files when those files are sent to the caller.
You can't do arithmetic with them.

If you are coding in BAJA and want to do arithmetic with a system variable
you use the ADD, SUB, MUL and DIV operations.  I'd recommend copying the
value to a user variable first and working with that, though.

---
Amarok: 17,459 tracks from 1,238 albums by 1,349 artists, but none playing.
� Synchronet � Where we BAJA Rob into writing our modules.  The ANJO BBS