Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

VAL returns a real value for numeric strings and zero for non-numeric strings and can check the value status of parameters (PENDINGDETERMINED, available

Syntax

  1. VAL(StrExpr$)
  2. VAL("PENDING:ParName")
  3. VAL("DETERMINED:ParName")
  4. VAL("VALUE:ParName")

...

  • StrExpr$ is a string value or expression.
  • "PENDING:ParName" returns 0 if ParName has a DETERMINED value and 1 if ParName has a PENDING valuePENDING value
  • "DETERMINED:ParName" returns 1 if ParName has a DETERMINED value and 0 if ParName has a PENDING valuePENDING value
  • "VALUE:ParName" returns value of ParName in tree status:
  1. If ParName has a DETERMINED value this value will be returned.
  2. If ParName is PENDING:
  • If ParName has a @PENDING@PENDING:ParValue attribute, ParValue will be returned
  • Else, a warning will be issued that the value for ParName is PENDING but is PENDING but the session will continue with ParValue=0. 

...

VAL("Qnowledge")

returns

0


VAL("PENDING:X")

returns

0 if X has a DETERMINED value and

1 if X has a PENDING valuePENDING value


Val("DETERMINED:X")

returns

1 if X has a DETERMINED value and

0 if X has a PENDING valuePENDING value


Quick links: Function overview | Attribute overview | Constants overview | Dimensions overview