Re: and then и or else

ïÔ: Alexey Naidyonov <CGatePro_at_mx_ru>
äÁÔÁ: Mon 23 Oct 2006 - 11:58:54 MSD

On Mon, 2006-10-23 at 11:41 +0400, Oleg Shumsky wrote:

> >äÁ ÔÁÍ ×ÓÅ ÐÒÅÄÅÌØÎÏ ÐÒÏÓÔÏ: and É or ×ÓÅÇÄÁ ×ÙÞÉÓÌÑÀÔ ÏÂÁ ÐÒÅÄÉËÁÔÁ,
> >and then É or else ×ÙÞÉÓÌÑÀÔ ÐÒÁ×ÙÊ ÐÒÅÄÉËÁÔ ÔÏÌØËÏ ÐÒÉ ÎÅÏÂÈÏÄÉÍÏÓÔÉ.

> á ÚÁÞÅÍ × ÓÌÕÞÁÅ and  ×ÙÞÉÓÌÑÔØ ÏÂÁ ÐÒÅÄÉËÁÔÁ, ÅÓÌÉ ÐÅÒ×ÙÊ  ÎÅ 
> ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ÕÓÌÏ×ÉÀ? ôÏÖÅ ÓÁÍÏÅ É Ó or, ÚÁÞÅÍ ×ÙÞÉÓÌÑÔØ ×ÔÏÒÏÊ, ÅÓÌÉ 
> ÐÅÒ×ÙÊ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ÕÓÌÏ×ÉÀ? èÏÔÑ, ÜÔÏ ÕÖÅ ×ÏÐÒÏÓ ÎÅ Ë ×ÁÍ ËÏÎËÒÅÔÎÏ.

îÕ Ñ ÎÁÐÉÓÁÌ, ÔÁËÏÊ ÏÐÅÒÁÔÏÒ ÂÙ×ÁÅÔ ÐÏÌÅÚÅÎ. îÁÐÒÉÍÅÒ, ÅÓÌÉ ×ÙÞÉÓÌÅÎÉÅ ×ÔÏÒÏÇÏ ÐÒÅÄÉËÁÔÁ ÐÒÉ×ÏÄÉÔ Ë ÉÚÍÅÎÅÎÉÀ ËÁËÏÇÏ-ÔÏ ÓÏÓÔÏÑÎÉÑ.

> îÕ  × ÏÂÝÅÍ-ÔÏ ÄÁ :) óÉÛÎÙÊ ×ÁÒÉÁÎÔ ËÁË-ÔÏ ÂÏÌÅÅ ÐÏÎÑÔÅÎ. åÓÌÉ ÕÞÅÓÔØ 
> ÅÝÅ, ÞÔÏ × cg/pl ÎÕÖÎÏ ÅÝÅ ÐÏÍÎÉÔØ, ÇÄÅ ËÁËÏÊ ÏÐÅÒÁÔÏÒ × ËÁËÏÍ ÓÌÕÞÁÅ  
> ×ÏÚ×ÒÁÝÁÅÔ null, Á × ËÁËÏÍ ÎÅÔ, ÔÏ ÍÏÚÇ ÒÁÓÐÌÁ×ÌÑÅÔÓÑ :)

óËÏÒÅÅ, "ËÁË-ÔÏ ÂÏÌÅÅ ÐÒÉ×ÙÞÅÎ". îÅ ÚÎÁÀ, ÍÎÅ Ä×Á ÒÁÚÎÙÈ ÔÉÐÁ ÌÏÇÉÞÅÓËÉÈ ÏÐÅÒÁÔÏÒÏ× × CG/PL ÐÏËÁÚÁÌÉÓØ ÓÏ×ÅÒÛÅÎÎÏ ÅÓÔÅÓÔ×ÅÎÎÙÍ. ÷ ÇÏÌÏ×Å ÕÌÅÇÌÏÓØ ÓÒÁÚÕ, ÍÏÚÇÉ ÎÅ ÐÌÁ×ÑÔÓÑ :)

ëÓÔÁÔÉ, Á ÞÔÏ Õ ÷ÁÓ ÚÁ ÔÁËÉÅ ÓÔÒÁÛÎÙÅ ÍÏÚÇÏÐÌÁ×ÉÌØÎÙÅ ÚÁÄÁÞÉ? íÏÖÅÔ, ÅÓÔØ ÓÍÙÓÌ ÐÏÏÂÝÁÔØÓÑ ÓÐÅÃÉÁÌØÎÏ? òÅÛÁÔØ ÞÕÖÉÅ ÚÁÄÁÞÉ ËÁË ÒÁÚ ÐÏ ÎÁÛÅÍÕ ÐÒÏÆÉÌÀ :)

> >ðÉÛÉÔÅ if IsDictionary(input) && input.what == "stop" -- É ÐÏÌÕÞÉÔÅ
> >ÚÎÁËÏÍÙÊ ÏÐÅÒÁÔÏÒ ÓÏ ÚÎÁËÏÍÏÊ ÓÅÍÁÎÔÉËÏÊ "ËÁË × C".
> ×ÏÔ ÎÁ×ÅÒÎÏÅ ÔÁË É ÐÏÓÔÕÐÌÀ. óÐÁÓÉÂÏ.

÷ÏÏÂÝÅ, ÏÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÏÐÉÓÁÎÉÅ ÁÌØÔÅÒÎÁÔÉ×ÎÏÇÏ ÓÉÎÔÁËÓÉÓÁ. åÓÌÉ ÐÏÌØÚÏ×ÁÔØÓÑ ÔÏÌØËÏ ÉÍ, ÔÏ ÐÏÌÕÞÁÅÔÓÑ ÐÏÞÔÉ ÞÉÓÔÙÊ Ñ×ÁÓËÒÉÐÔ. õÓÌÁÄÁ ×ÚÇÌÑÄÕ ÚÁËÏÒÅÎÅÌÙÈ ÓÉÛÎÉËÏ×.

SY,
--
 Alexey Naidyonov <alexey.naidyonov@itoolabs.com>  ITooLabs ðÏÌÕÞÅÎÏ Mon Oct 23 07:59:36 2006

üÔÏÔ ÁÒÈÉ× ÂÙÌ ÓÇÅÎÅÒÉÒÏ×ÁÎ hypermail 2.1.8 : Mon 23 Oct 2006 - 12:13:24 MSD