Initializing help system before first use

# basicvalue Type

The xreflect module exports a type xreflect~basicvalue which provides a way to manage values regardless of types. A basicvalue contains a single boolean, integer, real or string value. The type of value can be queried directly gettype function and you can access the value directly using getboolvalue, getintvalue, getrealvalue or getstringvalue.

A new basicvalue can be created from a boolean, integer, real, string or text using the constructor, e.g.:

    bvtrue := basicvalue(true)
    bvzero := basicvalue(0)
    bvpi := basicvalue(3.14)
    bvname := basicvalue('my name')

An uninitialized basicvalue will contain the boolean value false.

basicvalue should only be used when passing values to/from functions of the xreflect module. In other cases, the standard Mosel any type should always be used instead.

## Subroutines

Covered Topics

- getboolvalue
- getintvalue
- getrealvalue
- getstringvalue
- gettextvalue
- gettype

Parent Topic Mosel XReflect Module

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.