수색…


소개

이 주제는 if 및 else 문에 대한 것입니다.

변수 = 2 인 경우

set var to 2

if var = 2 then
    say "Var equals 2"
end if

var1 = 4이면 else 문

set var1 to 5
//set the number to anything

if var1 = 5 then
    say "Var one equals 5"
else
 say "Var one does not equal 5"
end if

대화 상자에서 텍스트를 반환했습니다.

display dialog "Password" default answer ""
set w to text returned of the result
if w = "Password" then
    display notification "Correct"
end if


Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow