Logical Boolean NOT Operator (FPScript)

23.08.2021

Carries out a logical Boolean NOT operation for an expression.

Syntax

Not Expression

The syntax of the Not operator consists of the following elements:

Element

Description

Expression

An expression that results in TRUE, FALSE or any numeric scalar value. For the numeric result, all values not equal to zero are taken to be TRUE.

Remarks

If Expression returns a list, then the first element in the list is taken, as long as it is not also a list. Otherwise, the extraction process is repeated recursively. All other elements of the list are ignored.

The result is the logical negation of Expression.

If Expression is a quantity, then it has to have the SI dimension 1 and it will be transformed to the unit 1 before conversion.

Available in

FlexPro View, Basic, Professional, Developer Suite

Example

If Not HasVoidValues(Signal) Then

     ...

End

Carries out a block of code if the signal does not contain void values.

Not 2 Pi

Returns FALSE, since the unit Pi has the SI dimension 1 and 2 Pi transformed to the unit 1 results in the value 6.2831853, which is not equal to zero.

 

See Also

Bitwise Boolean NOT Operator

Logical Boolean AND Operator

Logical Boolean OR Operator

Share article or send as email:

You might be interested in these articles