User Access Modifiers

input
input variables are script items that are to be input by the user.

Syntax:
<data type> input var <name> [= <expression for default value>];

Example 1:
// this is initialized with 10,000 then requested for input
input numeric var BasicRate = 10000;

Example 2:
// this is initialized with Rizal and Jose then requested for input
input text var LName = ‘Rizal’; // Rizal is the default last name
input text var FName = ‘Jose’; // Jose is the default first name

output
output variables are script items that are to be output to the screen only and is not allowed to be edited by the user.

Syntax:
<data type> output var <name> [= <expression for value>];

Example 1:
// this is initialized with 10,000 then requested for input
input numeric var MonthlyRate = 10000;
output numeric var DailyRate = MonthlyRate / 20;

Example 2:
// this is initialized with Rizal and Jose then requested for input
input text var LName = ‘Rizal’;
input text var FName = ‘Jose’;
output text var CompleteName = ‘’
{
     CompleteName = FName;
    if ( LName <> ‘’ )
        {
        if( CompleteName <> ‘’ )
            CompleteName = CompleteName + ‘ ‘;
        CompleteName = CompleteName + LName;
    }
}