Editing Squirrel Data Types
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<div style="width:33.333% | <div style="width:33.333%; top: 0px; position: sticky; height: 30px; display: inline-block; text-align: center; line-height: 30px; background-color:#BBBBBB;">[https://sigwiki.potato.tf/index.php/Squirrel_Comments BACK]</div><div style="width:33.333%; top: 0px; position: sticky; height: 30px; display: inline-block; text-align:center; line-height: 30px; background-color:#BBBBBB;">[https://sigwiki.potato.tf/index.php/An_Introduction_to_Squirrel HOME]</div><div style="width:33.333%; top: 0px; position: sticky; height: 30px; display: inline-block; text-align:center; line-height: 30px; background-color:#BBBBBB;">[https://sigwiki.potato.tf/index.php/Squirrel_Operators NEXT]</div> | ||
Data stored in variables can have a number of different types which determines what type of object it is and what you can do with it. Below is the full list of data types in Squirrel, however we will only go over the primitive ones in this section. The other data types will receive their own sections later in the guide. | Data stored in variables can have a number of different types which determines what type of object it is and what you can do with it. Below is the full list of data types in Squirrel, however we will only go over the primitive ones in this section. The other data types will receive their own sections later in the guide. | ||
Line 112: | Line 112: | ||
<syntaxhighlight lang="c#" line="1" start="1" style="font-weight:bold;> | <syntaxhighlight lang="c#" line="1" start="1" style="font-weight:bold;> | ||
// Strings ... | // Strings ... | ||
local str1 = " | local str1 = "'''@!(&(*@!%&!(%!%(%&FJSGADFJKL@fadjsh141a=-"; // String | ||
local str2 = "123"; // String with number characters, not an integer | local str2 = "123"; // String with number characters, not an integer | ||
local str3 = "a"; // String | local str3 = "a"; // String | ||
Line 129: | Line 129: | ||
Strings (and char literals) may contain [https://en.cppreference.com/w/c/language/escape escape sequences], which are | Strings (and char literals) may contain [https://en.cppreference.com/w/c/language/escape escape sequences], which special are characters that denote that something special should happen. Even though they have multiple characters in their definition, they count as one character when actually in use. | ||
Here are the ones you're most likely to use: | Here are the ones you're most likely to use: | ||