Forums / Developer / Bug in switch statement? / Comment45279
Trygve Fridstrøm
Tuesday 14 February 2006 1:16:52 am
Thanks for your reply.
The reason I used switch was that it's easy to check if the match variable value exists in an array (see documentation of switch statement): {switch match=$CourseTypeID} {case in=$ListCourseTypesID}
I can't use an if-statement to compare $CourseTypeID and $ListCourseTypesID since one is an array and the other is a single value.
Section doesen't loop unless one uses loop=... in the section definition.