NOTE: This invite-only release of SunSed Alpha is for testing purposes and in no way represents the final quality of the product — join the waitlist (~wait time: 2 weeks). SunSed release date is on March 11, 2022.

Variables

SunSed variables are containers for storing values (data). They may hold any of SunSed supported data types (string, integer, arrays and etc.)

Creating Variables

Variables should always start with a $ sign.

The name of the variable following the $, may start either with an underscore or a letter, never a number. After the first character, the remainder of the variable name may have any number of letters, numbers, or underscores.

$x = 100
$_user_name = "Howl"
$x_of_200 = [200, 400, 600, 800]

NOTE: Variable names that start with a number are invalid.

# invalid variable declaration
$1 = 1
#=> ERROR

Variable names are case sensitive, meaning you may use $user, $USER, or $UsEr, however, SunSed will treat all three as different variables.

Copyright © SunSed LLC 2013-2021 All rights reserved.