Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle forms IF ELSE condition

user12251389Apr 19 2017 — edited Apr 19 2017

I am new to oracle forms. I want to use 'IF ELSEIF ELSE' condition for radio button. If i use only IF and ELSE condition then it works but when i try to use IF ELSEIF ELSE condition then i am getting an error on line 2 as:

Encounter the symbol ";" when expecting one of the following: if

Here is my below PL/SQL code:

IF UPPER(:TEST_BRAND.BRAND_NAME) = 'FNC' THEN

  MESSAGE('U HAVE SELECTED FNC BRAND');

ELSE IF UPPER(:TEST_BRAND.BRAND_NAME) = 'FONIC-mobile' THEN

  MESSAGE('U HAVE SELECTED FONIC-mobile BRAND');

ELSE

  MESSAGE('U HAVE SELECTED KFL BRAND');

END IF;

This post has been answered by Keyser on Apr 19 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2017
Added on Apr 19 2017
3 comments
1,775 views