| r39 vs r40 | ||
|---|---|---|
| ... | ... | |
| 127 | 127 | |
| 128 | 128 | == 변수 a=b, b=1 테스트 == |
| 129 | 129 | 변수 하나를 다른 변수의 포인터(point)로 두고 테스트. |
| 130 | 기준 1. {{{#!wiki style="display: inline; font-family: monospace;" | |
| 131 | \[include(테스트:If문법/include 대상)\]}}}으로 둘 경우 | |
| 132 | {{{#!folding [펼치기 · 접기] | |
| 133 | {{{-5 {{{-3 [include(테스트:If문법/include 대상)]}}}}}}}}} | |
| 134 | ---- | |
| 135 | 기준 2. a=b 검증 : {{{#!if a=='b' | |
| 136 | 검증됨}}} | |
| 137 | ---- | |
| 130 | 138 | a=b, b=1로 둘 경우 ({{{#!wiki style="display: inline; font-family: monospace;" |
| 131 | 139 | \[include(테스트:If문법/include 대상, a=b, b=1)\]}}}) |
| 132 | 140 | {{{#!folding [펼치기 · 접기] |
| 133 | {{{-5 {{{-3 [include(테스트:If문법/include 대상, a=b, b=1)]}}}}}}}}} | |
| 134 | ||
| 141 | {{{-5 {{{-3 [include(테스트:If문법/include 대상, a=b, b=1)]}}}}}}}}}+this[a], this[a]가 작동된다. | |
| 142 | ---- | |
| 135 | 143 | * {{{#orange 결론 1 :}}} {{{#!wiki style="display: inline; font-family: monospace;" |
| 136 | 144 | this\[{{{#green 변수명}}}\]}}}은 문서를 include로 불러올 때 동작된다. |
| 137 | 145 | 포인터(pointer) 변수같이 해당 {{{#!wiki style="display: inline; font-family: monospace;" |
| 138 | 146 | {{{#green 변수명}}}}}}을 텍스트 값으로 정의하는 다른 변수 ({{{#!wiki style="display: inline; font-family: monospace;" |
| 139 | 변수명2={{{#green 변수명}}}}}}) | |
| 147 | 변수명2={{{#green 변수명}}}}}})의 식을 include 구문(문법)의 괄호 ( ) 안에 같이 적어야 문서를 include했을 때 동작된다. | |
| 140 | 148 | == 변수 c\= == |
| 141 | 149 | null과 "" 이 어떤 조건에서 되는지 테스트. |
| 142 | 150 | ||<table bgcolor=transparent,transparent> 구분 ||<width=20%> {{{#blue c==null}}} ||<width=20%> {{{#orange c==""}}} ||<width=20%> c=={{{#gray ''(space)''}}} ||<width=20%> c="{{{#gray ''(space)''}}}" || |
| ... | ... |