|
 |
|
|
|
|
|
Hi folks,
With this tutorial I want to make the difference clear between a string an expression and a bolean variable.
So there are 3 different types of variables.
String
A string variable is a variable that contains something between brackets.
ex: name="John"
So the variable name is a STRING variable
Expressions
An expression is a variable that contains something which we can use to make for example a calculation :
ex: age=18
The variable age is an EXPRESSION variable.
We can use that variable to make calculations.
Note that an expression variable does not contain brackets !
Names of variables are also expressions.
Example :
age=18;YourAge=age;
Here you see that the variable YourAge contains the value 18 and not the word age. So the variable YourAge is also an expression in that case. Do you get it ?
Boolean
A bolean variable is a variable that can hold the value true or false.
LoveMusic=true;
so here the variable LoveMusic contains the value true. You can see that this variable is also an expression but we give that one a special name called : Bolean.
In will explain that in other tutorials.
Is that clear my friends ?
|
|
|
|