xxxxxxxxxx
// this is how we comment out a line in code. Comments are for US, not the Computer
/* this
is
how
we
comment
out
paragraphs
of
text */
//Variables are like ______ in a form.
// Note: Anything you everything you type is case sensitive! Remeber when you use caps and don't!
// Remember! Code runs *TOP TO BOTTOM*, so if you don't declare the variable before you use them, the computer doesn't understand what you are telling it!
// We declare variables before we can use them. This allows us to change the values of that variable anywhere in the code.
int animalAge = 20; // this variable is a whole number
float dogs = 5; // this variable is a number with a decimal point
boolean horse = false; // this is a true or false statement, it can't do anything else but check if something is true or false
String verbage = "you are tiny and cute"; // this is how we display words in processing
println (); // prints whatever is within the brackets and adds a return at the end
print (); // prints whatever is in the brackets, but doesn't add a return at the end.
// Anything between " " prints as text only. to the computer it doesn't matter what you type there, it will show it as it is
print ("rabbits are jerks ");
print ("not really");
// Anything separated with a *,* displays as a separate thing. Anything separated with a + or - adds or subtracts values
println ("Rabbits of", animalAge , "years", verbage, "friends with,", dogs);