Skip to Main Content
Need Support? Let’s guide you to the right answer or agent.
Status Needs review
Categories General
Created by Guest
Created on Oct 29, 2023

Configuration Variable -> String(String)

This request is a classic adaptation of string search functionality for a new type of MSCE Configuration operator that searches for a string within another String, or a Configuration variable Operator.

Something like:

_My_String = StrString ($(searchString), $(stringToSearch) , IntegerStart, IntegerLength)

searchString is the string [or it can be a CFG Variable] that I am looking for.

stringToSearch is the string or CFG Variable I am searching

IntegerStart is where to start searching.

IntegerLength is how many characters to select and assign to my CFG variable if my searchString is found. [The selection will delete any trailing blank spaces].

If integerStart and/or integerLength are zero [chars] or blank [left out] then a Boolean operator is returned to '_My_String' as a string, AKA "0" [zero char] or "1" [one].


So, acting as a Boolean operator:

# Returning True/False are char strings are: "0" = False, or "1" [One] or higher as True.

%If StrString ("search String", $(_USTN_WORKSETCFG)) == True

%else

%endif


So this new MSCE CFG Operator can function in one of two ways:

As a string search function

As a Boolean Operator.