Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Book _ Qlikview 11 for developers - Error in book script ?

Chapter 7 - Subroutines.

When I reload my script, I get "Script line error"  for each of the lines below -

IF 'Aircraft Types' <> ''

ELSE

END IF

This happens twice. I followed the instructions properly. I don't know why I am still getting this error.

My subroutine -

SUB TraceRowCount (SourceTable)

  IF '$(SourceTable)' <> ''

  LET vNoOfRows = NoOfRows('$(SourceTable)');

  TRACE >>> Number of rows in $(SourceTable): $(vNoOfRows);

  LET vNoOfRows = Null();

  ELSE

  TRACE >>> No table name specified;

  END IF

END SUB

1 Solution

Accepted Solutions
Nicole-Smith

You need a THEN:

IF _______ THEN

ELSE

END IF

View solution in original post

4 Replies
Nicole-Smith

You need a THEN:

IF _______ THEN

ELSE

END IF

Not applicable
Author

Thanks and I also noticed that if I write THEN in the next line, I get an error.

Nicole-Smith

Yup, they have to be in the same line.

Not applicable
Author

Thanks for the question and answer I had the same problem.