Topic Options
#24136 - 10/15/07 03:37 AM Command Text_file
Guy Duggan Offline
Junior Member

Registered: 07/11/07
Posts: 5
In version 6 command text_file does not work inside a if statement, the only way we could get this to work was to go back to version 5.

Top
#24137 - 10/15/07 03:54 AM Re: Command Text_file
Anonymous
Unregistered


Hi Guy,

I don't know which expression you are using in this case, but in general here is some info about the behavior in PrintShop Mail 6.

The Solution
Make sure that all parts of an IF-statement are of one type (number or string or function (= expression-component)).

So the format looks like this:
IF([type]="string", "string", "string")
or
IF([type]=number, number, number).



Examples



Issue
In case you need both number and string, like in: IF([type]="string", number, "string")
Example: IF ( [type] = "1" , 100, "")
[note: PrintShop Mail returns:

Top
#24138 - 10/15/07 05:44 AM Re: Command Text_file
sellis Offline
OL Newbie

Registered: 07/11/07
Posts: 19
Hi Alfons,

The problem is; when a condition is set with an IF statement in conjunction with the Text_File command (reading an RTF), the formatting of the RTF is lost. However if the Text_File is used as a standard expression without IF then the formatting of the RTF is preserved.

Regards

Top
#24139 - 10/15/07 06:10 AM Re: Command Text_file
Anonymous
Unregistered


Hi Sellis,

There is a workaround in 6.0 with using variables in the if-statement

IF (COUNTER(1,2)=1,@RTF_TRUE@,@RTF_FALSE@)

but this is fixed in the already released 6.0.1 version. So that seems to be the easiest thing to do :-)

Best regards

Alfons

Top