What am I doing wrong? The IF statement is just being ignored. No response from any of the dialogs or anything.
on addTask()
set typeOfTask to current row of matrix "tord" of view "taskProps" of window "newTask"
if typeOfTask = "1" then
display dialog "Number 2"
else if typeOfTask = "2" then
display dialog "Number 2"
else
display dialog "Something else"
end if
end addTask
Thanks guys. You are always a big help.
EDIT: Ok, so the ELSE is working. That was just me overlooking it. When I echo the value of typeOfTask, it gives me 1. Why is it going to the ELSE statement when it equals 1?