Jump to content

Setting up Mail message using if statements


Ron Filipek
 Share

This topic is 4319 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I would like to create several options when sending mail messages. Based on field values which I can alter, I would like to send attachments or use BCC addresses. I have created global variables for both options which I can set to Yes/No, but, when setting the variable within a script by chaining the email functions, how do I invoke these particular functions through the use of if statements.

Ron

Link to comment
Share on other sites

You would use your if statements the same way in this case as you would use them in another filemaker script. Use your if statements to determine which functions you would like to call, and then call the functions/script steps you would like to execute.

If (myconditions)

   set variable ($myvar; emailfunction(parameters))

else (myconditions2)

   set variable ($myvar; emailfunction(parameters2))

End If

Link to comment
Share on other sites

This topic is 4319 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.