FormatBooleanAsString

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
format <Operand> as string
Associationscom.livecode.logic
Summary

Formats a boolean value as a string

Parameters
NameTypeDescription
Operand

An expression that evaluates to a boolean value.

Example
variable tVar as String
format 1 = 0 as String into tVar
put "e" into char 3 of tVar -- tVar is "tree"
Values
NameTypeDescription
The result

"true" or "false"

Description

Use FormatBooleanAsString when you want to manipulate a boolean value as text.