IMathLinkGetBoolean Method

Reads the Wolfram Language symbols True or False as a bool.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
bool GetBoolean()

Return Value

Boolean

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

MathLinkExceptionIf the waiting data cannot be read in this format, or on any other MathLink error.

See Also