Boolean (%BOOL) Macro

Applies to LoadComplete 4.97, last modified on May 20, 2019

Description

The Boolean macro is used to insert boolean data (True/False) into the string generated with the Custom String generator.

The macro is an analogue of the Boolean data generator.

Syntax

The macro has the following syntax:

%BOOL(ValueFormat, *xN)

Parameters

ValueFormat

Specifies the format of the generated data. The parameter can be one of the following values:

  • True/False (default)
  • Yes/No
  • 1/0

If you specify any other value, the macro will use the default parameter value - True/False.

The values are case-insensitive.

*xN

Optional parameter. Specifies the number of possible repetitions of each value in series of generated strings. N is a positive number that specifies the number of repetitions: 1, 2, 3, and so on. The default parameter value is *x1 (no repetitions).

Examples

The following examples demonstrate how to use the Boolean macro:

  • %BOOL(True/False)

    Generates True or False.

  • %BOOL(1/0, *x3)

    Generates 1 or 0 and repeats the generated value 3 times in a sequence of generated custom strings.

  • %BOOL(YES/NO)

    Generates Yes or No (the values are case-insensitive).

  • %BOOL(False/True) <— Invalid value

    This value is not supported. The macro will use the default value, True/False, and will generate True or False.

Remarks

See Also

Macro Reference
Custom String Generator Rules
Custom String Generator
Boolean Generator
Using Data Generators
Generating Values

Highlight search results