Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Scripts are typically divided into two parts: the Declaration Part and the Program Part. The declaration part is used to establish internal variables and input parameters. The program part includes all program statements outside of the variable declarations.

Users can place comments anywhere in the comments by placing a ‘/*’ at the start of the comment and a ‘*/’ at the end of the comment.

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

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

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

(1) Declaration Part선언부

Item항목

Description내용

Variable Declaration

Declare internal variables using the following format:

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;

...