goodpath(X)

Returns a boolean value indicating whether a given string would be a valid path. (Available as of version 10.23)

Syntax

goodpath(X)

Input

Argument Type Description
X text The string on which to apply the function

A scalar value or the name of a column

Return Value

Returns a boolean value indicating whether X would be a valid path (i.e., contains one or more good names separated by periods). For more information on good names, see goodname(X).

Note that X is not checked as to whether it actually refers to any existing object. See Object functions for functions that can be used to check the existence, type, and accessibility of objects on the 1010data Insights Platform.

Example

In the following example, the column good_path_bad_path shows the results of goodpath(X) applied to the column paths in the inline <table>.

<table cols="paths">
  this.is.a.good.path;
  also.a.GOOD.path;
  this_IS*not*a_valid.path;
  000000h_no;
  thisoneisakeeper;
</table>
<col name="paths" format="width:25"/>
<willbe name="good_path_bad_path" value="goodpath(paths)"/>