Xylem System 5000 BASIC Manual User Manual
Page 53

A parameter to the DATETIME function returning a two-digit number representation of the current
year, formatted as YY.
var = DATETIME(YEAR)
REM stores 9, inferring 2009
Basic Commands and Functions
51
Marks the beginning of a conditional WHILE-WEND loop. The condition is specified after the
WHILE keyword. As long as the condition evaluates to TRUE, the loop will continue to iterate.
Once the condition evaluates to FALSE, the loop will exit.
Presuming SiteID.csv contains:
Digital2,AC-In
1,256.25
OPEN “SiteID.csv” FOR READING AS #1
WHILE (!EOF(#1))
INPUT #1 “,”, var$
PRINT var$, “ “;
REM prints “Digital2 AC-In 1 256.25 “
WEND
CLOSE #1
WHILE
Returns the bitwise exclusive or (as a number) of the two numeric arguments.
var = XOR(6, 2)
PRINT “XOR: “, var REM prints “XOR: 4”
XOR (number, number)
YEAR