IsTrue

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Operators > Logical >

IsTrue

 

Description

 

Returns -1 (TRUE) when numeric_expression evaluates as non-zero; otherwise, it returns zero (FALSE).

 

Syntax

 

n = IsTrue(NumericExpression)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

NumericExpression

Number

No

Any numeric expression.

 

Remarks

Truth table

operator

Expression

Result

IsTrue

= 0

0

IsTrue

<> 0

-1

IsFalse

= 0

-1

IsFalse

<> 0

0

Restrictions

 

See also

 

IsFalse

 

Examples