How to write a nested if-statement
- From: RSummersJr@xxxxxxxxx
- Date: 28 Oct 2005 08:34:03 -0700
Hello,
I'm a beginner to Perl, and I'm trying to modify some existing code by
placing an if-statement within another if statement. I get an error
when I try using this code:
LOOP
IF v_last_heading <> cr_option.HEADING THEN
IF v_last_heading <> 'Action Type' THEN
v_opt_return := v_opt_return || '<TR><TH COLSPAN="3"
class="formheader"><div align="left"><font color="red">*</font>' ||
cr_option.HEADING || '</div></TH></TR>';
v_option_count := 0;
END IF;
The error I get is:
Line No. 162 : PLS-00103: Encountered the symbol "LOOP" when expecting
one of the following:
if
(WWV-17050)
Line No. 238 : PLS-00103: Encountered the symbol "end-of-file" when
expecting one of the following:
Any help would be greatly appreciated. Thanks!
Rick
.
- Follow-Ups:
- Re: How to write a nested if-statement
- From: andrmcg
- Re: How to write a nested if-statement
- Prev by Date: Re: Is this script safe?
- Next by Date: Re: Newbie Help (WinXP)
- Previous by thread: finding the first non digit character in a string
- Next by thread: Re: How to write a nested if-statement
- Index(es):
Relevant Pages
|