Navigation bar
  Start Previous page
 39 of 295 
Next page End  

ZBasic System Library
29
ZX Microcontroller Family
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