Hi Lisa -

This might work:

var x = ToLower(Left(Field("LastName"), 1))

if (x == ("a" || "b" || "c"))
        return Resource("GraphicABC");

else if (x == ("d" || "e" || "f"))
        return Resource("GraphicDEF");

else if (x == ("g" || "h" || "i"))
        return Resource("GraphicGHI");

        return Resource("GraphicDefault");

The function "Left" will return however many left-most characters you
specify (we're specifying 1) of any string you specify (in this case,
Field(LastName)). Then I'd recommend a "ToLower" function to make your
rule work no matter if the input is upper- or lower-case (not sure if this
is necessary, but it covers the bases).

Then do an IF statement.

I recommend poking around the "Building Blocks" section of the Rule Editor
- there's all kinds of stuff in there! Plus, since it is just Javascript,
you can always Google something like "return left character of a string in
Javascript" and I bet you would find a tutorial on it on the web.

Calling all FP Web Users!

Do you have a question or lots of knowledge to share about FusionPro Web?

If so, join our Printable Web to Print Users' Forum today!

Send email to [EMAIL PROTECTED] to find out how! 

Users of FusionPro Desktop have unlimited free email support. Contact Printable 
View FusionPro Knowledge Base, FusionPro Samples at

You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com

Reply via email to