Type conversion and other functions

There are three options:
1) if(<condition1>,<value1>,<condition2>,<value2>,бн,<value>)
The parameter list of this function consist of couples of conditional expression and value. The conditional expression are calculated from left to right.
If condition is satisfied, and return the value corresponding this expression. If no expression is satisfied, then returns <value>.
If there is a condition to be satisfied surely, then parameter <value> can be omitted.
2) ToText(<value>,<date>)
This function converses the value to string. It will converse date to string. Date format need to be defined.
3) ToDate(<value>)
This function converses the value to date.