[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bayonne-devel] "if" statement occasionaly does not work.
From: |
Anton Dedov |
Subject: |
Re: [Bayonne-devel] "if" statement occasionaly does not work. |
Date: |
Tue, 2 Nov 2004 11:34:23 +0700 |
"case" sturcture not helps too :(
I think that the cause of errors can be "goto" as well. Because when I
use the 'case' sturcture when the error occurs the 'otherwise' rule not
works too. All things just be restarted from subroutine's start:
set %prize=0
sql "select do_gambling()"
read table=#sql %prize
slog.warn "prize=%prize prize=%prize.value prize.type=%prize.type"
case %prize.value > 0 or %prize .ne. "0"
goto ::you_win
otherwise
goto ::you_loose
endcase
Also when a script achieved ::you_win rule the logs from that point
are looking strange:
dx(6): gamble::you_win::0x82fc8b0(6): prize=300
What the 0x82fc8b0 number means?
Anton Dedov
On Mon, 01 Nov 2004 12:35:38 -0500
"Mike Whitton" <address@hidden> wrote:
>
> I have had better luck with the 'case' conditional structure, this
> works
> consistently....
>
>