Introduction to Water Programming

This Site is intended to provide helps to Water language programmers around the world through technical examples, informational articles, and personal assistance.

The following examples are meant to be a quick Getting Started sort of tutorial using the Steam Free Version or the IDE. (If you are using the Free Version, be sure to set the output to "Rendered HTML".)

Example 4. Assigning Other Variable Types - Strings

Another fundamental feature of programming languages is to provide a mechanism for storing values in memory other than numbers. Here are some examples in Basic, Lisp and Water.

Basic:
x = "A string to store"
Lisp:
(setq x "A string to store")
Water:
<set x="A string to store" />

If I want to use the variable, I would access it like this:

Basic:
PRINT x
Lisp:
x
Water:
x

Notice that Water and Lisp return the variable's value like Example 1. Whereas, Basic needs a PRINT statement to display the value.

Go back to go to the next example.

©Copyright 2004, Mr. Merrick J. Stemen. All rights reserved.