Assignments

<< Click to Display Table of Contents >>

Navigation:  Explain™ Control Language  > Explain™ fundamentals >

Assignments

Description

In programming terminology, an assignment is a statement that attaches a value to a variable. Assignments use the common syntax:

 

Temp = "abc"

 

In Explain™, an assignment transfers both the value and the data type. In this example, the variable Temp becomes a STRING with the value abc (quotes are not included). You can also make assignments from one variable to another:

 

A = 5

Temp = A

 

After the first assignment, variable A has the data type INDEX and the value 5 (INDEX is a signed integer, but we define it more exactly in the Data types section). After the second assignment, Temp also has the data type INDEX and the value 5.

 

Related Topics