|Numbers||(e.g. 123 321 132 231 312 etc...)|
|Logical Values||(e.g. true false)
No fuzzy logic yet...
What you wanted more?!
Although explanation of variable values are not need, some attention
must be given to strings. The main problem occurs when you are
programming away and all of a sudden you need to use a quote within
your string. What can one do?! Well, think of another method of
doing what you want without using quotes, or take the lazy man's
method and "escape the quotes" with your friend and mine, the
ex: "this is a string value with \"quoted\" material in it"In addition, you can aslo use other commonly escaped unix-type stuff like:
[var](variable name) = (variable value);A few notes:
var thisvariable = false; var thatvariable = 1; var thosevariables = "two"; var novariables = null;
student="George"; student="Jane"; student="Elroy"; student="Astro"; student="Judy";This creates five elements in the array and sets their values. Pretty simple, eh? You can do a lot with arrays. We'll get back to them when we talk about objects.
|(Condition) ? Variable1 : Variable2||Basically if (Condition) is true, the expression |
has the value of variable1, otherwise it's variable2.
|Variable1 += Variable2||Same as: Variable1 = Variable1 + Variable2|
|Variable2 -= Variable2||Same as: Variable1 = Variable1 - Variable2|
|Variable1 *= Variable2||Same as: Variable1 = Variable1 * Variable2|
|Variable1 /= Variable2||Same as: Variable1 = Variable1 / Variable2|
|Variable++||Same as: Variable = Variable + 1|
|Variable--||Same as: Variable = Variable - 1|
|Variable1 == Variable2||Variable1 is the same as Variable2|
|Variable1 > Variable2||Variable1 is greater than Variable2|
|Variable1 >= Variable2||Variable1 is greater than or equal to Variable2|
|Variable1 < Variable2||Variable1 is less than Variable2|
|Variable1 <= Variable2||Variable1 is less than or equal to Variable2|
|Variable1 != Variable2||Variable1 is not equal to Variable2|
One quick note on String operators. If you want to merge two strings, just add them in order as if they were numbers. (When you add strings, you get the sum(concatination) of the strings). Example:
"This is a " + " string in " + " multiple parts."