Xylem STORM 3 Basic Programming manual User Manual
Page 27

25
Commands and Functions
Returns the common (base-10) logarithm of the given number. The LN function should be used if a
natural logarithm is required.
var = LOG(5) REM sets var to 0.69897
var = LOG(10) REM sets var to1
LOG (number)
Returns the given string as all lowercase
.
var$ = LOWER$(“A1,B2,C3,D4”) REM sets var$ to a1,b2,c3,d4
LOWER$ (string)
Returns the natural logarithm of the given number. The LOG function should be used if a common
(base-10) logarithm is required.
var = LN(3) REM sets var to 1.09861
LN (number)
Used within a subroutine, LOCAL marks the given variable as valid only within that subroutine.
Variables within a subroutine are accessible anywhere within the program otherwise.
SUB change_var()
LOCAL var
var = 100
END SUB
var = 10
change_var()
REM var is still set to 10
LOCAL
Declares the end of a DO-LOOP statement.
DO
REM Break out of the loop when our seconds are greater than 30
x = DATETIME(SECONDS)
IF (x > 30) BREAK
LOOP
LOOP