strselect
Previous Topic  Next Topic 

Synopsis:

       selected_str=strselect (index,str1[,str2[,str3....])


Arguments:

       index -  The index (starting from 1) of the string to select

       str1 - The first string

       [str2] - The second string

       [str3] - The third string

       ... etc


Description:  This function will select and return the string str1, str2, str3... depending upon the value of index.       If index is 1 then str1 will be returned, if index is 2 then str2 will be returned etc.      If an invalid index is given then the function will return an empty string ("").


Returns: Returns str1 if index is 1, str2 if index is 2, and so on.  If index is < 1 or > number of string arguments given, then an empty string is returned.