Changes

655 bytes added ,  18:23, 21 June 2021
no edit summary
Line 11: Line 11:  
<strong>Variable Types</strong>
 
<strong>Variable Types</strong>
   −
* Boolean = True or False
+
A variable can belong to 1 of the 4 following types: <strong>Boolean, Integer, Decimal</strong> or <strong>String</strong>.
 
+
* <strong>Boolean</strong> type allows 2 states: True or False
* Integer = Whole numbers, for example:  100, 200, 300
+
* <strong>Integer</strong> type is to store positive or negative numbers without decimal part, in order to make any kind of mathematical calculations or comparison
 
+
* <strong>Decimal</strong> type is to store any positive or negative numeric value, with or without decimal digits, in order to make any kind of mathematical calculations or comparison
* Decimal = Numbers with decimal point, for example: 1.1 1.11 1.111
+
* <strong>String</strong> type contains any kind of character (alphanumeric ones or any special ones, such as line feed/carriage return/new line or emojis). The amount of characters a string variable can contain depends on your memory device capacity. <i>HINT: to avoid memory saturation with string variables containing a huge amount of data, it's better to reset them (set to empty string) at the end of the macro using them.</i>
 
  −
* String = Any text characters (including numbers, space and special characters), for example: The cat sat on the mat! The cat is 5 years old, how old is yours?