Condition = ParseFactory::GetParseElement($options->Con, $this); $this->TrueAction = ParseFactory::GetParseElement($options->Tr, $this); if(isset($this->Options->Fa) && $this->Options->Fa != null) $this->FalseAction = ParseFactory::GetParseElement($options->Fa, $this); } public function Parse($type = null) { if($this->Condition->Parse()) return $this->TrueAction->Parse(); else { if ($this->FalseAction != null) return $this->FalseAction->Parse(); } return false; } }