New Search    ITScriptNet Home
  ITScriptNet Knowledge Base
Article ID: 10052
INFO: Values of Uninitialized or Unknown variables in scripts
What is the value of an unknown or uninitialized variable in a script?

Attempting to retrieve the value of an uninitialized User Defined (@) variable, or an undefined Prompt ($) or Lookup (#) variable will return the variable name.

For example, if a script references a variable named @VarName@ and this variable has not had a value assigned to it, the value will be "@VarName@".

Note: This behavior only applies to uninitialized User Defined variables or undefined Prompt or Lookup variables. Prompt or Lookup variables which are defined but have not been collected yet return an empty string.

This behavior is by design.

 
 
Please help us improve the Knowledge Base by rating this article.
Not Helpful Very Helpful
(c) 2000-2010 Z-Space Technologies, Inc. All Rights Reserved.