o
Secure Sign in
Save login on this device
Log in
Forgot your password?
Don't have an account? Create one now.
 
Contact Us     Sign In
 
Online Pilot Logbook | Professional Aviation Record Keeping™
 
 
ZuluScript Functions
getfieldstr(string1)
Returns the string value of the field whose name is specified in string1. If the field does not exist for the given record, an empty string ("") is returned.
For fields of type checkbox, returns "false" or "true" depending on checkbox state.
For flight records, you can look up field values for associated aircraft definitions as well as flight fields.
Example:
	var route = getfieldstr("Route");
	
getfieldnum(string1))
Returns the numeric value of the field whose name is specified in string1. If the field does not exist for the given record, 0.0 is returned.
For fields of type checkbox, returns 0 or 1 depending on checkbox state.
For flight records, you can look up field values for associated aircraft definitions as well as flight fields.
Example:
	var flttime = getfieldnum("Day Flight Time") + getfieldnum("Night Flight
	Time");
	
strindex(string1, string2))
Returns the zero-based index of the first occurrence of string2 in string1. If string2 does not occur in string1, -1 is returned.
Example:
	var idx = strindex("Hello World", "llo");
	
returns 2.
strequal(string1, string2))
Tests the case-insensitive equality of string1 and string2. Returns 1 if the strings are equal, or 0 otherwise.
Example:
	var iseq = strequal("Hello World!", "HELLO World!");
	
returns 1.
Back to help index   Next article
 
Version 7.0.1.389
 
2019 ZuluLog LLC  All rights reserved Privacy | Terms of Use