Help for this page

Select Code to Download


  1. or download this
        # unless object is valid and either isn't busy or can wait:
        unless(  $a  &&  ref($a)  &&  isa($a,'Foo')
             &&  (  ! $a->IsBusy()  ||  $a->CanWait()  )  ) {
            return;
        }
    
  2. or download this
        # if object is not valid or both is busy and can't wait:
        if(  ! $a  ||  ! ref($a)  ||  ! isa($a,'Foo')
         ||  $a->IsBusy()  &&  ! $a->CanWait()  ) {
            return;
        }