Skip to main content

Variable

A variable is a structure used to store data under a specific name. In programming languages, variables are building blocks that can be used in various parts of the program, enhancing readability and facilitating data management. Variables can have their values changed and updated at runtime

Parameters

  • Name - The identifier for the variable that allows it to be referenced in the code. It should clearly describe the data it represents.
  • Value - The actual data stored in the variable, which can vary in type (e.g., number, string) and can be updated during the program's execution.

RpScript​

How to use
// Variable name: username, Value: "Elif"
var username = "Elif";

// Variable name: age, Value: 28
var age = 28;

// Variable name: isActive, Value: true
var isActive = true;

Extension​