Command Reference : Operator and Function Reference : Operators
  
Operators
All of the operators described below may be used in expressions involving series and scalar values. When applied to a series expression, the operation is performed for each observation in the current sample. The precedence of evaluation is listed in “Operators”. Note that you can enforce order-of-evaluation using parentheses.
 
Expression
Operator
Description
+
add
x+y adds the contents of X and Y.
subtract
x–y subtracts the contents of Y from X.
*
multiply
x*y multiplies the contents of X by Y.
/
divide
x/y divides the contents of X by Y.
^
raise to the power
x^y raises X to the power of Y.
>
greater than
x>y takes the value 1 if X exceeds Y, and 0 otherwise.
<
less than
x<y takes the value 1 if Y exceeds X, and 0 otherwise.
=
equal to
x=y takes the value 1 if X and Y are equal, and 0 otherwise.
<>
not equal to
x<>y takes the value 1 if X and Y are not equal, and 0 if they are equal.
<=
less than or equal to
x<=y takes the value 1 if X does not exceed Y, and 0 otherwise.
>=
greater than or equal to
x>=y takes the value 1 if Y does not exceed X, and 0 otherwise.
and
logical and
x and y takes the value 1 if both X and Y are nonzero, and 0 otherwise.
or
logical or
x or y takes the value 1 if either X or Y is nonzero, and 0 otherwise.
In addition, EViews provides special functions to perform comparisons using special rules for handling missing values (see “Missing Values”):
 
@eqna(x,y)
equal to
takes the value 1 if X and Y are equal, and 0 otherwise. NAs are treated as ordinary values for purposes of comparison.
@isna(x)
equal to NA
takes the value 1 if X is equal to NA and 0 otherwise.
@neqna(x,y)
not equal to
takes the value 1 if X and Y are not equal, and 0 if they are equal. NAs are treated as ordinary values for purposes of comparison.