2016-11-08 15 views
0

私はのAppleScript:複数の条件

私のスクリプトを実行するために真であると、複数の条件を必要とする
set var1 to "variable 1 is here" 
set var2 to "variable 2 is here" 


if var1 = "variable 1 is here" and var2 "variable 2 is here" then 
    set var1 to "true" 
end if 

これは、私はAppleScriptのがこれを許可していないと思います、しかし働いていません。

私はこのような何かをするために、次に考えていた:

set score to 0 
set var1 to "variable 1 is here" 
set var2 to "variable 2 is here" 

if var1 = "variable 1 is here" then 
    set score to score + 1 
end if 

if var2 = "variable 2 is here" then 
    set score to score + 1 
end if 

if score = 2 then 
... 

は、このように簡単はありますか?

答えて

1

あなたVAR2後=を逃す

if var1 = "variable 1 is here" and var2 = "variable 2 is here" then