시험법 계산식 if 문 사용법
Q 문의
A 답변
if 문 사용의 기본 모양
if 조건1 then
실행문1
실행문2
...
elseif 조건2 then
실행문
else // 조건1, 조건2 둘 다 아닐 때
실행문
end ifLast updated
if 조건1 then
실행문1
실행문2
...
elseif 조건2 then
실행문
else // 조건1, 조건2 둘 다 아닐 때
실행문
end ifLast updated
if V1 > 10 then
Result = V1
else
Result = V2
end ifif V1 >= 30 then
Result = V1
elseif V1 >= 20 then
Result = V2
elseif V1 >= 10 then
Result = V3
else
Result = V4
end if