Nested IF
-
Hi,
I’m trying to creating a school reports system with certain subjects for certain grades. The logic I’ve used is 1) if term mark is filled then display the block, and within that block if further fields are filled then display those too. I’m sure this is wrong as the title is not displaying: could you kindly advise how to achieve this?
Here is my template code:
[if natural_science_term_mark]
{@natural_science_title}
[if natural_science_year_mark] Yr {@natural_science_year_mark}[/if]
[if natural_science_exam_mark] Exam {@natural_science_examination_mark}[/if]
[if natural_science_class_average] Avg {@natural_science_class_average}[/if]
[if natural_science_term_mark] Term {@natural_science_term_mark}[/if]
{@natural_science_teacher_comment}
[/if]If i omit the secondary IFs then it works but then it displays those 4 fields whether they’re filled or not.
Thanks.
- The topic ‘Nested IF’ is closed to new replies.