Skip to content

Learn: Variables

Julia Ogris edited this page Jun 3, 2023 · 11 revisions

Basic Data Types

Evy has three basic data types: string, num, and bool.

  • string: Strings are sequences of characters enclosed in quotation marks, such as "Hello World!".
  • num: Numbers can be positive, negative, or have decimal points, such as 123.45 or -6.
  • bool: Booleans can only be true or false.

Here are some examples of valid and invalid values for each data type:

Basic type ✅ Valid ❌ Invalid
string "abc", "1", "" 'abc', abc, "abc, "ab"c"
num 123.45, -6 +2, .2, "2", 1,000.3, 1 000
bool true, false "true"