Topic Options
#57900 - 03/01/21 09:37 AM Inserting Data within a Function.
BurtSherry Offline
OL Newbie

Registered: 04/28/10
Posts: 17
Loc: USA
So I have three thank you cards for a customer.
The text on the inside is 3 different variables based on a code in the data base.
But there is also variable within the variable.
If I take the extra variable out, I can get it to work, but I need the extra variable. frown
Here is what I need, but I can not get it to work.
What am I missing?

Code:
IF([list]="FT","Dear ",[full name])",
Please accept our deepest thanks for supporting Allegheny Lutheran Social Ministries (ALSM) this past year. We value your donation very much. 
The year 2020 was a difficult one for all of us. It has not only created emotional stress for everyone, but also financial stress. We look forward to this year with cautious optimism.
Likely you know that ALSM provides at least $2 million in benevolent care, and we are able to do so because of generous donors.
You are a first-time donor, and it is my hope that you will continue to support our ministry, both financially and prayerfully.
Stay safe. Thank you.
Sincerely,", IF([list]="C","Dear "[full name]",
Please accept our deepest thanks for supporting Allegheny Lutheran Social Ministries (ALSM) for the past "[years]" years.
We value your ongoing commitment to ALSM. The year 2020 was a difficult one for all of us. It has not only created emotional stress for everyone, but also financial stress. We look forward to this year with cautious optimism.
Likely, as a consecutive donor, you know that ALSM provides at least $2 million in benevolent care, and we are able to do so because of generous donors like you.
Thank you again. It is my hope that you will continue to support our ministry, both financially and prayerfully.
Stay safe. Thank you.
Sincerely,","Dear "[full name]",
Please accept our deepest thanks for supporting Allegheny Lutheran Social Ministries (ALSM) through the years.
We value your commitment to ALSM. The year 2020 was a difficult one for all of us. It has not only created emotional stress for everyone, but also financial stress. We look forward to this year with cautious optimism.
Likely, as a faithful donor, you know that ALSM provides at least $2 million in benevolent care, and we are able to do so because of generous donors like you.
Thank you again. It is my hope that you will continue to support our ministry, both financially and prayerfully.
Stay safe. Thank you.
Sincerely,"))


I might as well ask this also, I need to add a image (png of a signature) to the end, then the persons name in text after the image.
How would I go about this?
Thank you,
Burt

Top
#57901 - 03/03/21 08:29 AM Re: Inserting Data within a Function. [Re: BurtSherry]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 650
Loc: Québec, Canada
Code:
IF([list]="FT","Dear "&[full name]&",
Please accept our deepest thanks for supporting Allegheny Lutheran Social Ministries (ALSM) this past year. We value your donation very much. 
The year 2020 was a difficult one for all of us. It has not only created emotional stress for everyone, but also financial stress. We look forward to this year with cautious optimism.
Likely you know that ALSM provides at least $2 million in benevolent care, and we are able to do so because of generous donors.
You are a first-time donor, and it is my hope that you will continue to support our ministry, both financially and prayerfully.
Stay safe. Thank you.
Sincerely,", IF([list]="C","Dear "&[full name]&",
Please accept our deepest thanks for supporting Allegheny Lutheran Social Ministries (ALSM) for the past "&[years]&" years.
We value your ongoing commitment to ALSM. The year 2020 was a difficult one for all of us. It has not only created emotional stress for everyone, but also financial stress. We look forward to this year with cautious optimism.
Likely, as a consecutive donor, you know that ALSM provides at least $2 million in benevolent care, and we are able to do so because of generous donors like you.
Thank you again. It is my hope that you will continue to support our ministry, both financially and prayerfully.
Stay safe. Thank you.
Sincerely,","Dear "&[full name]&",
Please accept our deepest thanks for supporting Allegheny Lutheran Social Ministries (ALSM) through the years.
We value your commitment to ALSM. The year 2020 was a difficult one for all of us. It has not only created emotional stress for everyone, but also financial stress. We look forward to this year with cautious optimism.
Likely, as a faithful donor, you know that ALSM provides at least $2 million in benevolent care, and we are able to do so because of generous donors like you.
Thank you again. It is my hope that you will continue to support our ministry, both financially and prayerfully.
Stay safe. Thank you.
Sincerely,"))


Try this.
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#57902 - 03/03/21 09:22 AM Re: Inserting Data within a Function. [Re: BurtSherry]
BurtSherry Offline
OL Newbie

Registered: 04/28/10
Posts: 17
Loc: USA
Oh Jean-Cédric, you are awesome!
That worked like a charm!
Any idea how to insert a signature image at the end so it looks like this.


Top
#57903 - 03/03/21 09:54 AM Re: Inserting Data within a Function. [Re: BurtSherry]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 650
Loc: Québec, Canada
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#57904 - 03/03/21 10:05 AM Re: Inserting Data within a Function. [Re: BurtSherry]
BurtSherry Offline
OL Newbie

Registered: 04/28/10
Posts: 17
Loc: USA
Jean-Cédric, once again, thank you VERY much!

Top