$Trial

This feature is available in Broadcast Pro and Broadcast Enterprise only.

sThe $Trial reference contains information about the current trial run.  The $Trial reference is only valid when a trial is actually underway.  If the simulation is set to public access, or if a user has logged in, $Trial will be undefined.

How to Enable Time-Limited Simulation Trials

$Trial Properties

$Trial properties represent attributes of the trial run.

Days

Number of total days in the trial.

Example FML statement:

You are on Day $Trial.DaysUsed of your $Trial.Days day trial.

Example result:

You are on Day 3 of your 5 day trial.

DaysLeft

Number of days left in the trial (counts down to 1).

Example FML statement:

You have $Trial.DaysLeft days left of your $Trial.Days day trial.

Example result:

You have 1 day left of your 5 day trial.

DaysUsed

Number of days used in the trial (starts at 1).

Example FML statement:

You are on Day $Trial.DaysUsed of your $Trial.Days day trial.

Example result:

You are on Day 3 of your 5 day trial.

Expired

True if a trial is currently underway but has expired.  This is only useful on a login or other publically available page (users will not be able to access other simualtion pages after their trial expires).

Example FML statement:

#if($Trial && $Trial.Expired)

Your trial has expired.  Please log in below.

#end

Example result:

Your trial has expired.  Please log in below.

ExpirationDate

The date that the trial expires.

Example FML statement:

The trial will expire on $Formatter.date($Trial.ExpirationDate).

Example result:

The trial will expire on 03-11-05.

Runs

A list of $Run references for all runs simulated by the trial user..

Example FML statement:

You have simulated $Trial.Runs.size() runs to date as a trial user.

Example result:

You have simulated 50 runs to date as a trial user.