🌎
Geoflow Docs
  • 🌎Welcome to Geoflow
  • 🔍Overview
    • Visitor Data Properties
  • ⭐Features
    • Geo Visibility
      • Define Multiple Conditions
      • Match All Conditions
      • Partially Match Condition
      • Reverse Condition Value
      • Custom Classes
    • Geo Form
      • Autofill Form Fields
      • Auto-Populate Select Fields
    • Geo Text
    • Geo Style
    • Geo Script
    • Script Extensions
      • Performance
      • Marketing Parameters
    • Optional Settings
      • Script Tag Data Attributes
      • Meta Tags
  • ⚙️Advanced
    • Code Snippets
    • Methods
      • run
      • getData
      • updateData
      • displayData
      • clearData
      • checkCondition
      • select
    • Callbacks
    • Events
    • REST API
      • Get Visitor IP
      • Get Visitor Data
      • Add Website
      • Delete Website
      • Update Website
      • List Websites
      • Get Website
  • 📄Legal
    • License Agreement
Powered by GitBook
  1. Features
  2. Geo Visibility

Reverse Condition Value

Reverse the result of an evaluated condition you have defined by prepending an exclamation mark (!) to the value (e.g. countryCode:!AU).

PreviousPartially Match ConditionNextCustom Classes

Last updated 1 year ago

Was this helpful?

How Does It Work?

In JavaScript, the exclamation mark is frequently used to negate a boolean expression.

When appended to a value, Geoflow will reverse the outcome of the evaluated condition. This means that if the original result is true, it will be negated to return false, and vice versa.

How To Implement

Attribute Name
Attribute Value
Which Page Element?

data-geo-visibility

conditionName:!conditionValue

Any Element

The exclamation mark (!) must be placed after the semicolon and before the condition value.

Examples

Attribute Value
Description
Attribute Value
Description
Attribute Value
Description
Attribute Value
Description

countryCode:!AU

The element is visibile to everyone around the globe, except for those in Australia.

isMobile:true;countryCode:!CA

The element is only visible to mobile visitors or anyone not in Canada.

language:!fr

The element is visibile to anyone whose primary browser language is not currently set as French.

deviceType:!Desktop;isEU:true

The element is only visible to visitors in the European Union or anyone not on a desktop computer (e.g. Tablet and Mobile visitors).

⭐
Page cover image