PureBytes Links
Trading Reference Links
|
Use a begin end block
if x=1 then
Begin
command1;
command2;
command3;
end;
----- Original Message -----
From: "Justin Fanning" <Justin@xxxxxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Saturday, January 31, 2004 6:09 PM
Subject: Quick EL question
>
> Is their an easy was to combine multiple commands from the one
> conditional statement?
>
> I.E.
>
> Instead of:
>
> if x = 1 then [command 1];
> if x = 1 then [command 2];
> if x = 1 then [command 3];
>
> I want something like this:
> (this is not valid code but explains the concept)
>
> if x=1 then [command 1] and [command 2] and [command 3];
>
> I have looked at various and, if, else etc, but can't seem
> to find the right combination.
>
> Thanks,
>
>
> Justin
>
> PS, Just installed Dynaorder & loving it!! - Will post full report
> shortly.
>
>
>
|