ml_field_set_to_value

Checks if a field exists and has a non-empty value.

Contents

Syntax

lCheck = ml_field_set_to_value(opts, field)

Description

This function checks if a field with the name field exists in the
struct opts and if it exists, whether it's empty or not.

Input

opts  - option structure, which shall be tested
field - character array, containing the name of the field

Output

check - logical value, true if the field exists and isn't empty and
        otherwise false

See Also

ml_assert_boolean | ml_assert_scalar