Wafl Home

Primitive Data Types Tutorial

Conversions to String Type

Function asString(x) converts any non-string value x to String. It converts a value x to its string representation, following the Wafl syntax.

Function asChar(x) converts an Integer to a string consisting of a single character with a given ASCII code.

Function asChar(x) converts logical value true to a string value "T" and logical value false to a string value "F".

Source code:

{#
asString(3),
asString(3.14),
asString(true),
asString(false),
asChar(65),
asChar(65.7),
asChar(true),
asChar(false)
#}

Result:

{# "3", "3.140000", "true", "false", "A", "B", "T", "F" #}

 

Table of Contents

Let's Start

Program Structure

Primitive Data Types

List

Tuple

Record

HTML

Command Line Interpreter

Using Web Servers

Syntax

Examples

Tips

The most of examples evaluates with both command line and Web server Wafl interpreters. If any example is based on specific features of an interpreter, it is explicitly annotated.