Re: недокументированные функции

ïÔ: Alexey Naidyonov <CGatePro_at_mx_ru>
äÁÔÁ: Sun 22 Oct 2006 - 21:42:27 MSD

On Sun, 2006-10-22 at 21:11 +0400, Oleg Shumsky wrote: äÏÂÒÙÊ ÄÅÎØ.     

> éÌÉ, Ë ÐÒÉÍÅÒÕ,ÞÔÏ ÄÁÅÔ ÉÌÉ ÄÅÌÁÅÔ ÔÁËÁÑ ËÏÎÓÔÒÕËÃÉÑ Ñ
> ÔÏÖÅ ÎÅ ÐÏÎÑÌ
>
> phoneNumber = Vars().startParameter;
>
> þÔÏ ÔÁËÏÅ Vars() ?

"Vars()

        This function returns a dictionary unique for this Task (a
        program invocation). This dictionary can be used to store
        variables visible in all procedures and functions."

> ôÁËÖÅ ÈÏÔÅÌÏÓØ ÂÙ ÐÒÏÑÓÅÎÉÑ ÐÏ ÐÏ×ÏÄÕ ÁÌÇÏÒÉÔÍÁ ÒÁÂÏÔÙ
> ×ÙÒÁÖÅÎÉÑ
>
> if ... or else ... then ... end if
>
> ôÏÖÅ ÄÏ ËÏÎÃÁ ÎÅÐÏÎÑÔÎÏ ËÁË ÏÎÏ ÒÁÂÏÔÁÅÔ. ÷ ÏÐÉÓÁÎÉÉ ÑÚÙËÁ
> ÔÁËÁÑ ËÏÎÓÔÒÕËÃÉÑ ÎÅ ×ÓÔÒÅÞÁÅÔÓÑ É ÐÅÒ×ÙÊ ÒÁÚ Ñ ÎÁ ÎÅÅ
> ÎÁÔËÎÕÌÓÑ × ÏÐÉÓÁÎÉÉ ÔÏÇÏ, ËÁË ÒÁÂÏÔÁÅÔ StartBridge.

"The or else operation computes the left operand value first. If that value is not a null-value, the right operand is not computed, and the left operand value becomes the operation value. Otherwise the right operand is computed and its value becomes the operation value. The || sign can be used instead of the or else keywords."

SY,
--
 Alexey Naidyonov
 ITooLabs ðÏÌÕÞÅÎÏ Sun Oct 22 17:42:29 2006

üÔÏÔ ÁÒÈÉ× ÂÙÌ ÓÇÅÎÅÒÉÒÏ×ÁÎ hypermail 2.1.8 : Fri 24 Apr 2015 - 16:15:09 MSK