applescript
एप्सेप्ट बनाना अगर और एल्स स्टेटमेंट्स
खोज…
परिचय
यह विषय यदि और के बारे में है।
अगर चर = २
set var to 2
if var = 2 then
say "Var equals 2"
end if
यदि var1 = 4, और कथन
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