# [Ride v4 and v3] Variables
⚠️ This is the documentation for the Standard library version 4 and 3. We recommend to use version 6. Go to version 6
All variables in Ride are immutable. After definition, the value of the variable does not change.
Definition and simultaneous initialization of the variable are performed with the help of the let
operator.
You cannot declare a variable without initialization.
During the variable assignment at the right side of the "=" sign must be an expression. The value of the variable is the expression result.
# Examples
Definition of the integer variable.
let size = 5
Definition of the string variable.
let season = "Spring"
Since a function is a definition and not an expression, you can assign a function value to a variable but not the function itself.
func f() = {
true
}
let result = f()
# Laziness
Ride has the lazy variable initialization, so the value of the variable is calculated only at the first call to it.
# Variables built into the script
The script has built-in variables.