Sentencia condicional (if,if-else,if-else if-else)

If

set valor to 1
if valor = 1 then
display dialog "Valor es 1" buttons {"OK"} default button 1
end if

If-else

set valor to 2
if valor = 1 then
display dialog "Valor es 1" buttons {"OK"} default button 1
else
display dialog "Valor no es 1" buttons {"OK"} default button 1
end if

If-else if-else

set valor to 2
if valor = 1 then
	display dialog "Valor es 1" buttons {"OK"} default button 1
else if valor = 2 then
	display dialog "Valor es 2" buttons {"OK"} default button 1
else
	display dialog "Valor no es 1 o 2" buttons {"OK"} default button 1
end if