Stember
06-05-2005, 07:43 PM
Hello,
I have a small example code that i wish to show you to see if something is possible in a custom template. I wish to create a module for vBa CMPS and got stuck on one part.
I basicly want me template to do this (Its in PHP):
$number['total'] = 6;
$number[1] = 10;
$number[2] = 20;
$number[3] = 30;
$number[4] = 40;
$number[5] = 50;
$x = 0;
while ($x < $number['total']) {
$x++;
echo $number[$x];
}
So, what i have so far is:
<if condition="$x = 0"> </if>
<if condition="$x = $x + 1"></if>
<if condition="$x<$number[total]">
$number[$x]
<br />
</if>
So any suggestions on the loop i need?
I have a small example code that i wish to show you to see if something is possible in a custom template. I wish to create a module for vBa CMPS and got stuck on one part.
I basicly want me template to do this (Its in PHP):
$number['total'] = 6;
$number[1] = 10;
$number[2] = 20;
$number[3] = 30;
$number[4] = 40;
$number[5] = 50;
$x = 0;
while ($x < $number['total']) {
$x++;
echo $number[$x];
}
So, what i have so far is:
<if condition="$x = 0"> </if>
<if condition="$x = $x + 1"></if>
<if condition="$x<$number[total]">
$number[$x]
<br />
</if>
So any suggestions on the loop i need?