Email Element Visibility

Learn how Visibility Conditions control whether an element appears in an email.

Visibility Is an Advanced Feature

Using the Visibility property for an element is an advanced feature when Editing Emails. It gives you a lot of control over what appears in your email, so try it out and use the preview to make sure your email looks the way you expect.

Visibility Conditions use simple logic to decide whether an element appears in your email. You'll see them while editing an email, marked by an eye icon at the right side of the element.

img

An example email showing the visibility icons in edit mode.

For website content, see Website Element Visibility under Add Behavior.

The Visibility flag (eye icon) is color-coded:

Icon ColorWhat It Means
GreenThe condition is editable. You can change the condition statement as needed.
BlueThe platform sets the condition, so you can't edit it directly. Hover over the icon to see the condition being used.

img

An example showing the visibility condition when hovering over a blue eye icon.


Condition Statements

A Condition Statement works like an if statement. Auctria checks the condition, and the result is either true or false. If it's true, the element is shown.

Here are a few examples of how conditions read:

ConditionThe Element Is Shown When...
HasTicketsThe bidder has a ticket.
!HasTicketsThe bidder does not have a ticket.
variable_name === 0The variable equals 0.
HasTickets && HasBalanceThe bidder has a ticket and has a balance.

Variable Only Test

A Variable Only Test checks whether a variable has a value. The value itself doesn't matter, only that it isn't null (no value). If the variable has a value, the test returns true and the element is displayed.

Example: Variable Only Test

img

An example Visibility condition on a Divider element in the Bidder registration/purchase receipt system email.

The screen snippet above was taken from the Bidder registration/purchase receipt System Emails. The conditional test displays the Divider element on the page.

The HasTickets variable in this example tests a simple true/false condition: Does the bidder have a ticket? If the answer is yes, the Divider element is displayed. If the answer is no, the Divider element is not displayed.

Tickets and Dividers Aren't Connected

Tickets and Dividers have no specific connection. This example just shows that you can test a variable like HasTickets to control whether any element is displayed.

Test For False

By default, a condition tests for true. To test for false, put the logical not symbol ! (an exclamation mark) in front of the code-base variable. For example, !HasTickets displays the element if the bidder does not have a ticket for the event.

Variable Value Test

A Variable Value Test compares a variable to a specific value. Write the condition so it resolves to true or false. For example, to test whether a variable is 0, write variable_name === 0 or variable_name == '0', where variable_name is an accepted code-base variable (see Code-base Variables).

What do === and == mean?

  • === (strict equality) is true only when both values are equal and the same type.
  • == (equality) is true when both values are equal after being converted to the same type.

For example, 0 === '0' is false, but 0 == '0' is true.

For more detail, see these MDN web docs:

Test Multiple Variables

To test more than one variable in the same condition statement, join the code-base variables with the logical and operator, && (two ampersand symbols). For example, HasTickets && HasBalance is true only when both variables are true.

Other Logic Operators

You can combine most programming logic operators with Visibility Conditions as needed.


Code-base Variables

These Code-base Variables are commonly used in Visibility Conditions, grouped by the type of email.

Bidder Emails

  • !HasActivity
  • HasActivity
  • HasBalance
  • !HasBalance
  • HasDonations
  • HasItemsWon
  • HasPayments
  • HasPurchases
  • HasTickets
  • HasToken
  • NotifyBidderNumber
  • ShowPaymentLink && Token.Url
  • ShowTaxDeductible && TaxDeductibleAmount
VariableDescription
HasSponsorshipItemsIs there a purchased sponsorship item?
SponsorshipPurchasesA list of all sponsorships.
SponsorshipThe first sponsorship purchased (only one).

Online Bidding Emails

  • Auction.Options.IncludeItemImagesBidding (used for block visibility)
  • HasProxyBid
  • HasToken
  • !Item.MultipleWinners
  • Item.MultipleWinners

System Notifications

  • Comments
  • Coupons
  • HasPurchases
  • HasTickets
  • !Item.MultipleWinners
  • Item.MultipleWinners

Ticket Emails

  • NotifyBidderNumber

Other

  • BidTotal
  • Balance
  • DiscountApplied
  • Donation (which is any cash donation included)

Last reviewed: October 2026
EmailElementVisibility
/communication/email/editing_emails/email_element_visibility/
communication
email
editing_emails
email_element_visibility
Email Element Visibility
Learn how Visibility Conditions control whether an element appears in an email.
© Auctria 2013-2026