.NET/Link API Version 1.7 USE FRAMES

IMathLink.GetBoolean Method 

Reads the Mathematica symbols True or False as a bool.

[Visual Basic]
Function GetBoolean() As Boolean
[C#]
bool GetBoolean();

Remarks

It returns true if the symbol True is read, and false if False (or any other non-True symbol) is read. If you want to make sure that either True or False is on the link, don't use GetBoolean; instead, read the symbol with GetSymbol and test its value yourself.

Exceptions

Exception Type Condition
MathLinkException If the waiting data cannot be read in this format, or on any other MathLink error.

See Also

IMathLink Interface | Wolfram.NETLink Namespace