User Defined tags - Nested loops - syntax

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
olavt

User Defined tags - Nested loops - syntax

Post by olavt »

When I try to put a nested loop in a user defined tag, I get the red "invalid code" warning, no matter what I try to do. And I do not find any information on a specific syntax for this. This is an abbrevated version of the string:

while ($row = mysql_fetch_array($books)) {

echo 'string

if($row['SMPlus']!=NULL){echo '
  SheetmusicPlus';}

string contiunes';
}

I have tried to use and not use ' at the points where the string breaks and the inner condition start and when the string continues. I have tried with $row['SMPlus'] and .$row['SMPlus']. in the condition, with and without semicolon at the end of the inner condition, but nothing works. Where do I find information on how to do this?
Locked

Return to “CMSMS Core”