You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 22
Next »
VAL returns a real value for numeric strings and zero for non-numeric strings and can check the value status of parameters (PENDING, DETERMINED, available)
Syntax
- VAL(StrExpr$)
- VAL("PENDING:ParName")
- VAL("DETERMINED:ParName")
- VAL("VALUE:ParName")
Arguments
- StrExpr$ is a string value or expression.
- "PENDING:ParName" returns 0 if ParName has a DETERMINED value and 1 if ParName has a PENDING value
- "DETERMINED:ParName" returns 1 if ParName has a DETERMINED value and 0 if ParName has a PENDING value
- "VALUE:ParName" returns value of ParName in tree status:
- If ParName has a DETERMINED value this value will be returned.
- If ParName is PENDING:
- If ParName has a @PENDING:ParValue attribute, ParValue will be returned
- Else, a warning will be issued that the value for ParName is PENDING but the session will continue with ParValue=0.
- If ParName is not available in the knowledge base, a warning is issued, 0 will be returned and the session will continue.
- "NullString" is considered as a DETERMINED empty string
- "NullString" is considered as a DETERMINED empty string
Examples
VAL("445.02")
returns
445.02
VAL("NullString")
returns
0
VAL("Qnowledge")
returns
0
VAL("PENDING:X")
returns
0 if X has a DETERMINED value and
1 if X has a PENDING value
VAL("DETERMINED:X")
returns
1 if X has a DETERMINED value and
0 if X has a PENDING value
Quick links: Function overviewAttribute overviewConstants overviewDimensions overview