Wafl Home

Primitive Data Types Tutorial

Functions isNull and IfNull

Database and map usage may result in NULL string value. For example, the reading of a map value corresponding to a non-existing key results in NULL value.

Function isNull(s), of type ( String -> Bool ), tests if the string s is NULL or not.

Function ifNull(s,p), of type ( String * String -> Bool ), returns s if it is not NULL, and p if s is NULL.

 

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.