On Mon, 2006-10-23 at 10:57 +0400, Oleg Shumsky wrote:
> õ×ÁÖÁÅÍÙÅ ÇÕÒÕ, ÏÂßÑÓÎÉÔÅ ÐÏÖÁÌÕÊÓÔÁ ÒÕÓÓËÉÍ ÑÚÙËÏÍ ÌÏÇÉËÕ ÒÁÂÏÔÙ
> ËÏÎÓÔÒÕËÃÉÊ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ and then É or else.
äÁ ÔÁÍ ×ÓÅ ÐÒÅÄÅÌØÎÏ ÐÒÏÓÔÏ: and É or ×ÓÅÇÄÁ ×ÙÞÉÓÌÑÀÔ ÏÂÁ ÐÒÅÄÉËÁÔÁ, and then É or else ×ÙÞÉÓÌÑÀÔ ÐÒÁ×ÙÊ ÐÒÅÄÉËÁÔ ÔÏÌØËÏ ÐÒÉ ÎÅÏÂÈÏÄÉÍÏÓÔÉ.
> ë ÐÒÉÍÅÒÕ, ËÁË ÒÁÂÏÔÁÅÔ ÜÔÏ ÕÓÌÏ×ÉÅ ?
>
> if phoneNumber == null or else phoneNumber == "" then
> phoneNumber = EmailUserPart(SIPURIToEmail(LocalURI()));
> end
> if;
>
>
> é ×ÏÔ ÜÔÏ ?
>
> if IsDictionary(input) and then input.what == "stop" then
> syslog("blabla"); stop; end if;
>
> ðÏÞÅÍÕ ÎÅÌØÚÑ ÂÙÌÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÂÏÌÅÅ ×ÍÅÎÑÅÍÕÀ É ÌÅÇËÏ ÞÉÔÁÅÍÕÀ
> ËÏÎÓÔÒÕËÃÉÀ ??
>
> if IsDictionary(input) and input.what == "stop" then syslog("blabla");
> stop; end if;
÷ÏÔ ÅÓÌÉ × CG/PL ÎÁÐÉÓÁÔØ ÔÁË, ÔÏ ÐÏÌÕÞÉÔÓÑ ÏÛÉÂËÁ -- ÐÏÔÏÍÕ ÞÔÏ ×ÙÞÉÓÌÉÔØ ×ÔÏÒÏÊ ÐÒÅÄÉËÁÔ ÎÅ ÐÏÌÕÞÉÔÓÑ, ÜÔÏ ÎÅ ÓÌÏ×ÁÒØ. ñ ÐÏÄÏÚÒÅ×ÁÀ, ÞÔÏ ÎÁ ÓÁÍÏÍ ÄÅÌÅ ÷ÁÛ ×ÏÐÒÏÓ Ú×ÕÞÉÔ ÔÁË: "ðÏÞÅÍÕ ÏÐÅÒÁÔÏÒÁÍ and É or ÎÅÌØÚÑ ÂÙÌÏ ÎÁÚÎÁÞÉÔØ ÏÂÙÞÎÕÀ ÓÉÛÎÕÀ ÓÅÍÁÎÔÉËÕ?". ñ ÎÅ ÂÕÄÕ ÏÔ×ÅÞÁÔØ ÚÁ Á×ÔÏÒÏ×, ÎÏ ÚÁÍÅÞÕ, ÞÔÏ ÏÐÅÒÁÔÏÒ Ó ×ÙÞÉÓÌÅÎÉÅÍ ÏÂÏÉÈ ÐÒÅÄÉËÁÔÏ× ÔÏÖÅ ÂÙ×ÁÅÔ ÐÏÌÅÚÅÎ, ÈÏÔÑ, ÐÒÉ ÖÅÌÁÎÉÉ, ÍÏÖÅÔ ÓÉÌØÎÏ ÚÁÐÕÔÁÔØ ÌÏÇÉËÕ ËÏÄÁ ÄÌÑ ÎÅ×ÎÉÍÁÔÅÌØÎÏÇÏ ÞÉÔÁÔÅÌÑ.
ëÓÔÁÔÉ, ÎÉËÔÏ ÎÅ ÚÁÓÔÁ×ÌÑÅÔ ÐÉÓÁÔØ "and then" É "or else": "The && sign can be used instead of the and then keywords. ... The || sign can be used instead of the or else keywords."
ðÉÛÉÔÅ if IsDictionary(input) && input.what == "stop" -- É ÐÏÌÕÞÉÔÅ ÚÎÁËÏÍÙÊ ÏÐÅÒÁÔÏÒ ÓÏ ÚÎÁËÏÍÏÊ ÓÅÍÁÎÔÉËÏÊ "ËÁË × C".
SY,
--
Alexey Naidyonov
ITooLabs
ðÏÌÕÞÅÎÏ Mon Oct 23 07:18:03 2006
üÔÏÔ ÁÒÈÉ× ÂÙÌ ÓÇÅÎÅÒÉÒÏ×ÁÎ hypermail 2.1.8 : Fri 24 Apr 2015 - 16:15:09 MSK