I'm trying to test for "active" tasks and only display active tasks in a CGI file. For each task I'm doing the following test.if($task->GetState() == "active"){print("this is an active task");}The problem I'm running into is that for some reason this test holds true for all tasks in my system whether active or inactive.If I do this.print($task->GetState());if($task->GetState() eq "active"){print("this is an active task");print($task->GetState());}I can see the state values being active and/or inactive but the if statement shouldn't be true for inactive states and it is.Am I doing something wrong or missing something? Any ideas?Thanks,
kaalraa,Wow, thank you so much. I feel very stupid right now. I changed the == to eq and it works perfect. I guess my brain was still in web programming mode.Thanks again for all your help.