up: BOOL     index Zimbu documentation

CLASS T.bool @public

summary

     

The builtin type bool. It has either the value TRUE or FALSE.

The object methods can be used on an bool variable or value:

 IO.print("It's " .. FALSE.ToString())

$ToString() string @public  Return either "FALSE" or "TRUE".
$ToString(format) string @public  When format is "1b" output "0" and "1" instead of "FALSE" and "TRUE"..
$Size() int @public  Return the number of byteString in a bool.
$Type() type @public  Return the type of the bool.
$Compare(other) int @public  Return -1 when other is OK and this bool is FALSE, zero when other is equal to this bool, and 1 when other is FALSE and this bool is TRUE.
$Equal(other) bool @public  Return TRUE when other is equal to this bool.
 
 

members (alphabetically)

     

FUNC $Compare(bool other) int @public

     

Return -1 when other is OK and this bool is FALSE, zero when other is equal to this bool, and 1 when other is FALSE and this bool is TRUE.

FUNC $Equal(bool other) bool @public

     

Return TRUE when other is equal to this bool.

FUNC $Size() int @public

     

Return the number of byteString in a bool.

Always returns 1.

FUNC $ToString() string @public

     

Return either "FALSE" or "TRUE".

FUNC $ToString(string format) string @public

     

When format is "1b" output "0" and "1" instead of "FALSE" and "TRUE"..

format must either be "b", in which case it works just like ToString(), or "1b", in which case it returns "0" for FALSE and "1" for TRUE.

FUNC $Type() type @public

     

Return the type of the bool.

license

      Copyright 2013 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0