AddOutput(self::OUTPUT_RESULT, BooleanIOFormat::class); $oIORegister->AddOutput(self::OUTPUT_NOT_RESULT, BooleanIOFormat::class); } /** * Compute the expression and set the output values. * * @param string $sEventType * * @return mixed * @throws \Combodo\iTop\Forms\Block\FormBlockException * @throws \Combodo\iTop\Forms\Register\RegisterException */ public function ComputeExpression(string $sEventType): mixed { $oResult = parent::ComputeExpression($sEventType); // Update output $bResult = boolval($oResult); $this->GetOutput(self::OUTPUT_RESULT)->SetValue($sEventType, new BooleanIOFormat($bResult)); $this->GetOutput(self::OUTPUT_NOT_RESULT)->SetValue($sEventType, new BooleanIOFormat(!$bResult)); return $oResult; } }