Conversion functions are functions that convert the data type of an input value into another data type.
The supported conversion functions are convert-to-number-function, convert-to-bool-function and convert-to-string-function.
| • | <das:convert-to-number-function> - converts bool or number values into number values: "true" converts into "1" and "false" converts into "0". |
The sample below describes the syntax of the convert-to-number-function.
<das:convert-to-number-function id="11">
<das:in-param id="13" name="string" src="34"/>
<das:return-value id="12"/>
</das:convert-to-number-function>
Attributes:
id - unique identifier of this resource in the current processing job.
Children elements:
<das:return-value> - specifies the id from which the result value of the function will be referenced in the current job.
<das:in-param> - specifies the source and name of the function parameter.
| • | <das:convert-to-bool-function> - converts all data types into bool values. |
Every number other than "0" converts into "true" and "0" converts into "false".
String values different than "true" convert into "false".
The sample below describes the syntax of the convert-to-bool-function.
<das:convert-to-bool-function id="20">
<das:in-param id="22" name="string" src="13"/>
<das:return-value id="21"/>
</das:convert-to-bool-function>
Attributes:
id - unique identifier of this resource in the current processing job.
Children elements:
<das:return-value> - specifies the id from which the result value of the function will be referenced in the current job.
<das:in-param> - specifies the source and name of the function parameter.
| • | <das: convert-to-string-function> converts all data types into string values. |
The sample below describes the syntax of the convert-to-string-function.
<das:convert-to-string-function id="19">
<das:in-param id="21" name="string" src="17"/>
<das:return-value id="20"/>
</das:convert-to-string-function>
Attributes:
id - unique identifier of this resource in the current processing job.
Children elements:
<das:return-value> - specifies the id from which the result value of the function will be referenced in the current job.
<das:in-param> - specifies the source and name of the function parameter.