Quote:
Originally Posted by capink
You made the template language flexible enough to display rating (I shouldn't be telling you that  )
Code:
program:
rating = $rating;
text = '';
for x in range(0,rating):
text = text & '★'
rof
The line highlighted in blue should be edited to fetch rating from the appropriate column
|
Just for fun, the following template does it too.
Code:
program:
if $rating then substr('★★★★★', 0, $rating) fi