Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.