|Sign In Using:|
Example: Solo Flight in Last 60 Days
Initialization script: None
if (getfieldnum("Solo") == 1) currency_ok = 1;
How it works:This simple script is executed for all your flights within the last 60 days (or whatever period you specify in the definition), working backwards from the most recent. The script checks if the "Solo" checkbox is turned on. If it is, the currency check is satisfied, and the expiration date will be 60 days (or as specified) from the date of the flight record that satisfied the currency.
var dayapps = 0, ngtapps = 0;
dayapps = dayapps + getfieldnum("Day Inst Apps"); ngtapps = ngtapps + getfieldnum("Night Inst Apps"); if (dayapps + ngtapps >= 3) currency_ok = 1;
How it works:This is similar to the last example, except that we now also have two "counter" variables