Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

NOTS

Description

The function returns a dynamic array of the logical complements of each element of dynamic.array. It takes the general form: 

NOTS(DynArr)

If the value of the element is true, the NOTS function returns a value of false (0) in the corresponding element of the returned array. If the value of the element is false, the NOTS function returns a value of true (1) in the corresponding element of the returned array.

A numeric expression that evaluates to 0 has a logical value of false. A numeric expression that evaluates to anything else, other than the null value, is a logical true.

An empty string is logically false. All other string expressions, including strings, which consist of an empty string, spaces, or the number 0 and spaces, are logically true.

If any element in dynamic.array is null, it returns null for that element.

X=5 
Y=5
PRINT NOTS (X-Y:@VM:X+Y)

The above will display 1 and 0. 


Go back to jBASE BASIC.

Was this article helpful?