Please enable JavaScript to view this site.

ESL Documentation

ESLSTR Subroutine

Compare a string to true and false strings.

call StringToBoolean(INPUT_SV, VALUE_BV, TRUE_SV, FALSE_SV)

INPUT_SV

The string whose characters you want examined.

VALUE_BV

A boolean return value (either true or false).

TRUE_SV

A string you want to associate with a true response.

FALSE_SV

A string you want to associate with a false response.

Description

Use this subroutine to compare the INPUT_SV string to the TRUE_SV and FALSE_SV strings.

The subroutine returns 1 if the string matches TRUE_SV and 0 if it matches FALSE_SV.

Errorlevel will be non-zero if the input string does not match either TRUE_SV or FALSE_SV.