Navigation:  thinBasic language > Operators > Logical >

IsTrue

Previous pageReturn to chapter overviewNext page

 

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

 

Restrictions

 

See also

 

Examples