Start Back Next End
  
ZBasic System Library
57
ZBasic Microcontrollers
CBool
Type
Function returning Boolean
Invocation
CBool(arg)
Parameter
Method
Type
Description
arg
ByVal
Byte
The value to convert to a Boolean value.
Discussion
This function converts a Byte value to a Boolean value.  If the byte has the value 0 the result will be
False, otherwise it will be True.
Example
Dim pinHi as Boolean
pinHi = CBool(GetPin(12))
Previous page Top Next page