An important thing to note here is that the code/condition you write must return a boolean value. If the condition returns true, the experiment will run for that visitor. If the condition returns false, the experiment will not run.
In Freshmarketer, targeting options let you define who and where your experiment should be targeting. But you might want to target a more complex and precise set of audience which cannot be done with the list of other available targeting options in Freshmarketer.
CASE 1 - Running the experiment on certain time period
An e-commerce site wants to display a page containing exclusive offers to all the site’s visitors who enter the site in the afternoon after 12 till midnight 12.
CASE 2 - Running the experiment for logged in visitors exclusively
An online book store wants to target the experiment specifically to the logged in visitors to display a page containing access to all their premium collection of books.
CASE 3 - Running the experiment for visitors with certain screen sizes
An online ticket booking site has a responsive website and wants to target the audience who enter the site with certain screen sizes, like the one pertaining to a tab’s screen size.