is_var()
Verify that a PSL object variable exists.
Syntax
is_var(object)
Parameter
Parameter | Definition |
---|---|
object | name of the object that is to be verified as a variable |
Description
The is_var() function returns TRUE if object exists and is a variable. The is_var() function returns FALSE for the following conditions:
- object does not exist
- object exists but is not a variable-it is an application instance or a parameter
The is_var() function first checks for the existence of a variable in the context of the argument that is supplied to the function, not the current context. If the variable does not exist in the supplied context, the is_var() function searches until the variable is found or the search fails at the computer level.
Example
The following example uses the is_var() function to determine if the PSL object /MEMORY/MEMORY/MEMPageOut/value is a variable:
object = "/MEMORY/MEMORY/MEMPageOut/value"
if (is_var(object)) {
print(object," is a variable.\n");
}
if (is_var(object)) {
print(object," is a variable.\n");
}
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*