Script Functions


#1

Can you confirm that $upper and $caps don't work anymore in export?
And what exactly is $mul("x", y) for?


#2

No, both functions are working fine here. Can you please post or mail your export configuration.

Multiply "x" with "y". Some user wanted to mass-add the SONGLEN field (time in milliseconds), so I've added this function to add this field by using a formatstring like $mul("%_length%", 1000) at Actions, Format value.

Best regards,
~ Florian


#3

They all work in the Exportheader here, but not in the record or footer. No matter how simple the export line is.
But

also makes it fail in the header.
I mailed you a test config.


#4

This is an issue with the parser for the script functions I can't resolve. It took me the whole day to realize that, but I don't see a solution for that :frowning:

Background:

$upper("%_extension%")
This line will expand the %_folderpath% parameter to an absolute folderpath like C:\Music</i> so it becomes
<a href="file:///C:\Music">$upper("%_extension%")
Please note the bold part which will mask/escape the quote. This way, the parser assumes, that >$upper( belongs into the quotes and won't detect the function name.

You can resolve this problem, by adding an additional space after the placeholder:
$upper("%_extension%")

Best regards,
~ Florian


#5

Ok thank you for researching this problem. :slight_smile:

Do the functions (with simple usage) work for you everywhere?


#6
QUOTE (d4n0 @ Jun 13 2004, 11:42 AM)

Do the functions (with simple usage) work for you everywhere?


Yes, they work flawless here after removing the obvious <td ... lines. Please send me your modified export configuration if you still encounter problems.

Best regards,
~ Florian


#7

Sorry I get it now, this line will screw all lines after it and not only its own line.
It's ok now.