beautypg.com

Commands and functions – Xylem STORM 3 Basic Programming manual User Manual

Page 42

background image

40

COMMANDS AND FUNCTIONS

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.

REM Presuming SiteID.csv contains:

REM Digital1,Analog2,WindSpeed

REM 56.23,2.25,126.5


OPEN “SiteID.csv” FOR READING AS #1

WHILE (!EOF(#1))

INPUT #1 “,”, var$

REM reads each name and value from the file

WEND

CLOSE #1

WHILE

Returns the bitwise exclusive or (as a number) of the two numeric parameters.

var = XOR(6, 2)

REM sets var to XOR: 4

XOR (number, number)