Click or drag to resize

IsLogic Function

X#
Determine if a value is a logical.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION IsLogic(
	uValue AS USUAL
) AS LOGIC
Request Example View Source

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Logic
TRUE if the value is the LOGIC data type; otherwise, FALSE.
Remarks
Examples
This example uses IsLogic() to display the possible results of a survey:
X#
 1IF IsLogic(uValue)
 2    IF uValue
 3        ? "Responded Yes"
 4    ELSE
 5        ? "Responded No"
 6    ENDIF
 7ELSEIF IsNil(uValue)
 8    ? "Did not respond"
 9ELSE
10    ? "Other response or transmission error"
11ENDIF
See Also