>>>>> "CA" == CM Analyst <cmanal...@yahoo.com> writes:

  CA> my $taskEntity = $session->GetEntity ('almtask', $_);

that gets a perl object in $taskEntity.

  CA> $taskEntity->GetFieldValue(state)->GetValue();

where is the value being assigned to? $taskEntity is not being modified
or set in that line of code. it is just the object used to make the
call.

  CA> if ($taskEntity eq "Completed") {return;}

since that is the object, it will never eq Completed. you need to save
the value from the previous line and compare that. this should work:

        my $value = $taskEntity->GetFieldValue(state)->GetValue();

        if ( $value eq "Completed") {
                return;
        }

see how that saves the value in a variable and then compares to that
variable. you need to learn more about OO in perl and how to
differentiate an object from the values that methods can return.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to