Please enable JavaScript to view this site.

iService Forms User Guide

Navigation: Form Commands > $IF

$IF -myaccountcampaigns

Scroll Prev Top Next More

The -myaccountcampaigns parameter is used with the $IF command to determine whether any mailing campaigns are available to the logged in user. This presents the same list of mailing campaigns that the user would see from the /MyAccount.aspx?mode=subscriptions page within iService  as shown below.

 

MyAccountCampaigns

 

Example:

$if -myaccountcampaigns$

 

     Yes, there are campaigns available to you.

 

$else$

 

     No, there are no campaigns for you.

 

$endif$

 

For an example of using -myaccountcampaigns to generate a table of available lists, see the My Account Subscription example.