Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


If-Then Statement Help

If-Then Statement Help

I am struggling to write a conditional statement that would allow me to write a different sentence in one field based on several different fields, and potentially building that sentence.

If the gift type is {Gift-in-Kind} then "Sentence about gift-in-kind."
If the gift type is {Stock} then "Sentence about stock."
If the gift (any type) has a code of {Auction}, then "Sentence about auction (and potentially gift in kind or stock)."
If the gift (any type) is linked to a membership, then "Membership note (and any of the above)."
If the gift doesn't meet any of these criteria, then "Sentence about no goods or services received."

Is this even possible?!

RE: If-Then Statement Help

You have pretty much got it provided you know contents of Gift Type field then something like the following will work

If it is not based on contents of the field then you will need to give more info

If {GiftTypeField} = 'Gift-in-Kind' then "Sentence about gift-in-kind."
If {GiftTypeField} = 'Stock' then "Sentence about stock."
If {GiftTypeField} = 'Auction' then "Sentence about auction (and potentially gift in kind or stock)."
If {GiftTypeField} = 'membership' then "Membership note (and any of the above)."
"Sentence about no goods or services received."

RE: If-Then Statement Help

You may need to change the order of your ifs.

Right now if the type is Stock or In Kind, then you would get that sentence, even if the person is a Member.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close