r7
r1
1[[분류:기타 문법 틀]]
r6
2###################################################################
3## 각주는 개행을 해도 영향을 주지 않는다.
4## if블록 내에서 개행 한번은 개행 안됨. 개행 두번부터 개행이 된다.
5## < 예시 >
6## {{{#!if helloworld == true
7## 내용1}}}{{{!if good == true
8## 내용2}}} ### 개행안됨 (표시: 개행1개행2)
9##
10## {{{#!if helloworld == true
11## 내용1
12## }}}{{{!if good == true
13## 내용2}}} ### 개행안됨 (표시: 개행1개행2)
14##
15## {{{#!if helloworld == true
16## 내용
17##
18## }}}{{{!if good == true
19## }}} ### 개행 됨 (표시: 개행1\n개행2)
20###################################################################
21###################################################################
22{{{#!if alength=a.length, asubstring=a.substring(0,1), a
23a(값:@a@, 길이테스트(@a.length@, @alength@), 부분문자열테스트(@a.substring(0,1)@, @asubstring@);
24
r3
25}}}{{{#!if a == null
r6
26a는 선언되지 않음;
27################ 이렇게 if구문 사이를 구분 가능 ####################
r7
28}}}{{{#!if btype=typeof(b), bparseInt=parseInt(b), btype2=typeof(bparseInt), btype3=typeof(b=='123'), btype4=typeof(b*1), btype5=typeof(b*1.0), b
r6
29b(값:@b@, 타입테스트(@typeof(b)@, @btype@, @bparseInt@, @btype2@, @btype3@, @btype4@));
30
31}}}{{{#!if b == null
32b는 선언되지 않음;
33####################################################################
34}}}{{{#!if c
r3
35c(값:@c@);
r6
36
r3
37}}}{{{#!if c == null
r6
38c는 선언되지 않음;
39####################################################################
40}}}{{{#!if a == true
r1
41asdfasdf}}}