r5 vs r6
11
[[분류:기타 문법 틀]]
2
{{{#!if atype=typeof(a), a
3
a(값:@a@, @a.length@ @a.substring(0,1)@ @atype@);
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
23
a(값:@a@, 길이테스트(@a.length@, @alength@), 부분문자열테스트(@a.substring(0,1)@, @asubstring@);
24
425
}}}{{{#!if a == null
5
a는 선언되지 않음; }}}{{{#!if b
6
b(값:@b@); }}}{{{#!if b == null
7
b는 선언되지 않음; }}}{{{#!if c
26
a는 선언되지 않음;
27
################ 이렇게 if구문 사이를 구분 가능 ####################
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
29
b(값:@b@, 타입테스트(@typeof(b)@, @btype@, @bparseInt@, @btype2@, @btype3@, @btype4@));
30
31
}}}{{{#!if b == null
32
b는 선언되지 않음;
33
####################################################################
34
}}}{{{#!if c
835
c(값:@c@);
36
937
}}}{{{#!if c == null
10
c는 선언되지 않음; }}}{{{#!if a == true
38
c는 선언되지 않음;
39
####################################################################
40
}}}{{{#!if a == true
1141
asdfasdf}}}