This should also work:
P01_RDO_HP = IF (P01_RDO_MODEL = '1' OR P01_RDO_MODEL = '4') THEN '2' ELSE '1'.
P01_RDO_HP = IF (P01_RDO_MODEL = '1' OR P01_RDO_MODEL = '4') THEN '2' ELSE '1'.
--- In vantage@yahoogroups.com, "Butler, Bruce" <bbutler@...> wrote:
>
> Man, that was frustratingly simple. Thank you.
>
> Bruce Butler, IS Manager
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Mike Anstey
> Sent: Thursday, April 19, 2012 6:23 AM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] 8.03.409C - Product Configurator Page OnLeave Else statement
>
>
>
> ABL has its own language for IF THEN ELSE.
>
> Try this (Note the punctuation, each statement ends with a period):
>
> IF P01_RDO_MODEL = '1' OR P01_RDO_MODEL = '4' THEN
>
> DO:
>
> P01_RDO_HP = '2'.
>
> END.
>
> ELSE DO:
>
> P01_RDO_HP = '1'.
>
> END.
>
> OR This should work as well:
>
> IF P01_RDO_MODEL = '1' OR P01_RDO_MODEL = '4' THEN P01_RDO_HP = '2'.
>
> ELSE P01_RDO_HP = '1'.
>
> From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf
> Of Butler, Bruce
> Sent: Wednesday, April 18, 2012 4:56 PM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] 8.03.409C - Product Configurator Page OnLeave Else
> statement
>
> I have what appears to be a very simple IF-THEN-ELSE statement in a Page
> On Leave from within the Product Configurator.
>
> IF P01_RDO_MODEL = '1' OR P01_RDO_MODEL = '4' THEN P01_RDO_HP = '2' ELSE
> P01_RDO_HP = '1'
>
> If I get rid of the ELSE P01_RDO_HP = '1' the code compiles fine. Can
> anyone see why this is failing with the Else statement?
>
> Thank you,
>
> Bruce Butler
> Information Systems Manager
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>
>
> [Non-text portions of this message have been removed]
>