Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

스크립트는 일반적으로 선언 부분과 프로그램 부분의 두 부분으로 나뉩니다. 선언 부분은 내부 변수 및 입력 매개 변수를 설정하는 데 사용됩니다. 프로그램 부분에는 변수 선언 외부의 모든 프로그램 명령문이 포함됩니다.

사용자는 스크립트내에 주석을 사용 할 수 있습니다.

Ex: /* 사용자는 해당 기호 안에 남기고자 하는 내용을 남길 수 있습니다.*/

(1) 선언부

항목

내용

Variable Declaration

아래와 같은 형식으로 변수를 선언합니다:

var variable_name;

The initial value of declared variables is 0. To declare more than one variable, use a comma “ , ” between variables:

var variable_name_1, variable_name_2,, variable_name_n;

Users can use multiple VAR keywords before the program part starts.

Users can also define an initial value for the variable when declaring it using the following format:

var variable_name = 1;

(2) Program Part

In the program part, all program statements except the declaration (variables and parameters) can be used. An example of the most basic statement is the function call, calculation, and storing of the result.

The following program example is composed of basic statements.

var_a = var_a + 1;

var_b = MyPgm(var_a, 2, 3);

Each statement must end with a semicolon “ ; ”. Each function returns a single result to the caller. The program shown above returns the result of MyPgm to “var_b”.

  • No labels