variable_name
If a variable called variable_name
exists, it will be
replaced by its value. Otherwise, an empty string will be used and Cows will raise a
warning.
Important: when a non-existing variable is used to test a condition within an if statement (Section 15.6), a warning message is raised and variable behaves just like an empty string. In the same fashion, two non-existing variables are considered equal.
quote1 = "Men hunt I think maybe because they have something"; quote2 = "wrong with their own equipment and they need something"; quote3 = "else to shoot."; quote4 = "-- Pamela Anderson"; print (quote1); print (quote2); print (quote3); print (quote4);
Here, we simply define some variables and display their values. Cows' output will be:
Men hunt I think maybe because they have something wrong with their own equipment and they need something else to shoot. -- Pamela Anderson
This manual can be downloaded from http://www.g-cows.org/.