What kind of variables are supported in STATISTICA BASIC?
STATISTICA BASIC supports both temporary variables (local for the program) and the standard STATISTICA variables from the data file. The temporary variables can be either numeric (e.g., i, income, my_new_variable_with_a_long_name) or text variables (e.g., a$, b$, first_name$, last_name$), and they do not need to be declared unless they are arrays or global variables that are accessible in user-defined functions or subroutines. The data file variables can be referred by their original names, numbers, and they can be treated as vectors; data files can be treated as predefined, two-dimensional arrays ( DATA(v,c) ). How to assign a value to a variable: Here are examples of simple assignment statements: i := 10; j := 20; monthly_profit := (revenues95-expenses95)/12; first_name$ := ‘JANNICE’; Note that in STATISTICA BASIC, the assignment operator is := and that the end of each statement is marked by a semicolon ( ; ). How to specify a conditional instruction (if … then): Here is an example