r34 vs r35
......
22
[[../|상위 문서]]
33
[[../include 결과|결과 보기]]
44
== 변수 a=1 ==
5
기본형식 : a==1
5
* 기본형식 : a==1
66
{{{#!wiki style="word-break: keep-all;"
77
||<table bgcolor=transparent,transparent> 구분 || a= || +a= || -a= || 'a'= || "a"= || \[a\]= [* if 조건문을 \[a\]==1 식으로 걸어놓음.] || \[a=\][* if 조건문을 \[a==1\] 식으로 걸어놓음.] || calc(a)= || calc(+a)= || calc[a]= || calc[+a]= || calc['a']= || @@_@a@= ||
88
|| ==1[* 단, -a= 열에는 if 조건문을 -a==-1 으로 걸어놓음.] || {{{#!if a==1
......
6363
출력}}} ||
6464
}}}
6565
66
== 변수 b=text ==
67
||<table bgcolor=transparent,transparent> 구분 || @@_@b@= ||
68
|| =text || {{{#!if @b@==text
66
== 변수 this.a=1 ==
67
기준모양 : this.a == 1
68
||<table bgcolor=transparent,transparent> 구분 || this.a || +this.a || -this.a || "this.a" || [this.a] || this['a'] || this["a"] || this[+a] || this[a] || +this['a'] || +this["a"] ||
69
|| ==1[* 단, -this.a 에는 -this.a==-1로 걸어놓음.] || {{{#!if this.a==1
70
출력}}} || {{{#!if +this.a==1
71
출력}}} || {{{#!if -this.a==-1
72
출력}}} || {{{#!if "this.a"==1
73
출력}}} || {{{#!if [this.a]==1
74
출력}}} || {{{#!if this['a']==1
75
출력}}} || {{{#!if this["a"]==1
76
출력}}} || {{{#!if this[+a]==1
77
출력}}} || {{{#!if this[a]==1
78
출력}}} || {{{#!if +this['a']==1
79
출력}}} || {{{#!if +this["a"]==1
6980
출력}}} ||
70
|| =text{{{#gray ''(space)''}}} || {{{#!if @b@== text
81
|| =='1' || {{{#!if this.a=='1'
82
출력}}} || {{{#!if +this.a=='1'
83
출력}}} || {{{#!if -this.a=='1'
84
출력}}} || {{{#!if "this.a"=='1'
85
출력}}} || {{{#!if [this.a]=='1'
86
출력}}} || {{{#!if this['a']=='1'
87
출력}}} || {{{#!if this["a"]=='1'
88
출력}}} || {{{#!if this[+a]=='1'
89
출력}}} || {{{#!if this[a]=='1'
90
출력}}} || {{{#!if +this['a']=='1'
91
출력}}} || {{{#!if +this["a"]=='1'
7192
출력}}} ||
93
|| =="1" || {{{#!if this.a=="1"
94
출력}}} || {{{#!if +this.a=="1"
95
출력}}} || {{{#!if -this.a=="1"
96
출력}}} || {{{#!if "this.a"=="1"
97
출력}}} || {{{#!if [this.a]=="1"
98
출력}}} || {{{#!if this['a']=="1"
99
출력}}} || {{{#!if this["a"]=="1"
100
출력}}} || {{{#!if this[+a]=="1"
101
출력}}} || {{{#!if this[a]=="1"
102
출력}}} || {{{#!if +this['a']=="1"
103
출력}}} || {{{#!if +this["a"]=="1"
104
출력}}} ||
105
위의 표는 {{{#!wiki style="display: inline; font-family: monospace;"
106
this}}} 함수 안에 {{{#!wiki style="display: inline; font-family: monospace;"
107
{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}}}} 를 포함하여 {{{this}}} 함수 안에 다른 모양을 넣고 테스트를 해보는 표이다.
108
{{{#!wiki style="display: inline; font-family: monospace;"
109
this\[{{{#orange \+}}}{{{#green 변수명}}}\]}}}과, {{{#!wiki style="display: inline; font-family: monospace;"
110
this\[{{{#green 변수명}}}\]}}}도 지원되는지 테스트, this{{{#orange .}}}{{{#green 변수명}}}이 텍스트값으로만 될 수 있는지 테스트.
72111
112
* {{{#orange 결론 1 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
113
this\[{{{#orange \"}}}{{{#green 변수명}}}{{{#orange \"}}}\]}}}(큰따옴표)은 {{{#!wiki style="display: inline; font-family: monospace;"
114
this\[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\]}}}(작은따옴표)와 마찬가지로 텍스트 값으로 출력된다.
115
* {{{#orange 결론 2 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
116
this\[{{{#orange \+}}}{{{#green 변수명}}}\]}}}, {{{#!wiki style="display: inline; font-family: monospace;"
117
this\[{{{#green 변수명}}}\]}}}은 실수값으로도 텍스트 값으로도 계산하기에는 올바른 입력이 아니다.
118
{{{#!wiki style="display: inline; font-family: monospace;"
119
this\[{{{#orange \"}}}{{{#green 변수명}}}{{{#orange \"}}}\]}}}를 숫자 값으로 나오게 하고 싶으면 {{{#!wiki style="display: inline; font-family: monospace;"
120
{{{#orangered +}}}this\[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\]}}}이나 {{{#!wiki style="display: inline; font-family: monospace;"
121
{{{#orangered +}}}this\[{{{#orange \"}}}{{{#green 변수명}}}{{{#orange \"}}}\]}}} 등 알맞게 입력해야 한다.
122
* {{{#orange 결론 3 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
123
this{{{#orange .}}}{{{#green 변수명}}}}}}은 양식만 잘 맞추면 숫자값으로 또는 텍스트값으로 나오게 할 수 있다.
124
125
== 변수 a=b, b=1 테스트 ==
126
변수 하나를 다른 변수의 포인터(point)로 두고 테스트.
127
{{{#!folding [펼치기 · 접기]
128
{{{-5 {{{-3 [include(문테스트:If문법/include 대상, a=b, b=1 )]}}}}}}}}}
129
73130
== 변수 c\= ==
74131
null과 "" 이 어떤 조건에서 되는지 테스트.
75132
||<table bgcolor=transparent,transparent> 구분 ||<width=20%> {{{#blue c==null}}} ||<width=20%> {{{#orange c==""}}} ||<width=20%> c=={{{#gray ''(space)''}}} ||<width=20%> c="{{{#gray ''(space)''}}}" ||
......
124181
{{{#orange 결론 : }}} {{{#!wiki style="display: inline; font-family: monospace;"
125182
this\[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\]}}}는 텍스트 값으로 출력된다.
126183
127
=== this 관련 테스트 표 ===
128
{{{#!wiki style="display: inline; font-family: monospace;"
129
this}}} 함수 안에 {{{#!wiki style="display: inline; font-family: monospace;"
130
{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}}}} 를 포함하여 {{{this}}} 함수 안에 다른 모양을 넣고 테스트를 해보는 문단이다.
131
{{{#!wiki style="display: inline; font-family: monospace;"
132
this\[{{{#orange \+}}}{{{#green 변수명}}}\]}}}과, {{{#!wiki style="display: inline; font-family: monospace;"
133
this\[{{{#green 변수명}}}\]}}}도 지원되는지 테스트, this{{{#orange .}}}{{{#green 변수명}}}이 텍스트값으로만 될 수 있는지 테스트.
134
135
기준모양 : this.a == 1
136
---다음은 기출변형 표이다.---
137
||<table bgcolor=transparent,transparent> 구분 || this.a || +this.a || -this.a || "this.a" || [this.a] || this['a'] || this["a"] || this[+a] || this[a] || +this['a'] || +this["a"] ||
138
|| ==1[* 단, -this.a 에는 -this.a==-1로 걸어놓음.] || {{{#!if this.a==1
139
출력}}} || {{{#!if +this.a==1
140
출력}}} || {{{#!if -this.a==-1
141
출력}}} || {{{#!if "this.a"==1
142
출력}}} || {{{#!if [this.a]==1
143
출력}}} || {{{#!if this['a']==1
144
출력}}} || {{{#!if this["a"]==1
145
출력}}} || {{{#!if this[+a]==1
146
출력}}} || {{{#!if this[a]==1
147
출력}}} || {{{#!if +this['a']==1
148
출력}}} || {{{#!if +this["a"]==1
149
출력}}} ||
150
|| =='1' || {{{#!if this.a=='1'
151
출력}}} || {{{#!if +this.a=='1'
152
출력}}} || {{{#!if -this.a=='1'
153
출력}}} || {{{#!if "this.a"=='1'
154
출력}}} || {{{#!if [this.a]=='1'
155
출력}}} || {{{#!if this['a']=='1'
156
출력}}} || {{{#!if this["a"]=='1'
157
출력}}} || {{{#!if this[+a]=='1'
158
출력}}} || {{{#!if this[a]=='1'
159
출력}}} || {{{#!if +this['a']=='1'
160
출력}}} || {{{#!if +this["a"]=='1'
161
출력}}} ||
162
|| =="1" || {{{#!if this.a=="1"
163
출력}}} || {{{#!if +this.a=="1"
164
출력}}} || {{{#!if -this.a=="1"
165
출력}}} || {{{#!if "this.a"=="1"
166
출력}}} || {{{#!if [this.a]=="1"
167
출력}}} || {{{#!if this['a']=="1"
168
출력}}} || {{{#!if this["a"]=="1"
169
출력}}} || {{{#!if this[+a]=="1"
170
출력}}} || {{{#!if this[a]=="1"
171
출력}}} || {{{#!if +this['a']=="1"
172
출력}}} || {{{#!if +this["a"]=="1"
173
출력}}} ||
174
175
결과에서 a=1 문단 참조.
176
177
{{{#orange 결론 1 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
178
this\[{{{#orange \"}}}{{{#green 변수명}}}{{{#orange \"}}}\]}}}(큰따옴표)은 {{{#!wiki style="display: inline; font-family: monospace;"
179
this\[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\]}}}(작은따옴표)와 마찬가지로 텍스트 값으로 출력된다.
180
181
{{{#orange 결론 2 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
182
this\[{{{#orange \+}}}{{{#green 변수명}}}\]}}}, {{{#!wiki style="display: inline; font-family: monospace;"
183
this\[{{{#green 변수명}}}\]}}}은 실수값으로도 텍스트 값으로도 일치하지 않는 점에서 올바른 입력이 아니다.
184
{{{#!wiki style="display: inline; font-family: monospace;"
185
this\[{{{#orange \"}}}{{{#green 변수명}}}{{{#orange \"}}}\]}}}를 숫자 값으로 나오게 하고 싶으면 {{{#!wiki style="display: inline; font-family: monospace;"
186
{{{#orangered +}}}this\[{{{#orange \'}}}{{{#green 변수명}}}{{{#orange \'}}}\]}}}이나 {{{#!wiki style="display: inline; font-family: monospace;"
187
{{{#orangered +}}}this\[{{{#orange \"}}}{{{#green 변수명}}}{{{#orange \"}}}\]}}} 등 알맞게 입력해야 한다.
188
189
{{{#orange 결론 3 :}}} {{{#!wiki style="display: inline; font-family: monospace;"
190
this{{{#orange .}}}{{{#green 변수명}}}}}}은 양식만 잘 맞추면 숫자값으로 또는 텍스트값으로 나오게 할 수 있다.
191