public function conditional($name, $operator, $value)
    {
        $conditionalBuilder = new ConditionalBuilder($name, $operator, $value);
        $conditionalBuilder->setParentContext($this);

        $this->setConfig('conditional_logic', $conditionalBuilder);

        return $conditionalBuilder;
    }
public function conditional($name, $operator, $value)
    {
        $conditionalBuilder = new ConditionalBuilder($name, $operator, $value);
        $conditionalBuilder->setParentContext($this);

        $this->setConfig('conditional_logic', $conditionalBuilder);

        return $conditionalBuilder;
    }
public function conditional ( $ name , $ operator , $ value ) { $ conditionalBuilder = new ConditionalBuilder ( $ name , $ operator , $ value ) ; $ conditionalBuilder -> setParentContext ( $ this ) ; $ this -> setConfig ( 'conditional_logic' , $ conditionalBuilder ) ; return $ conditionalBuilder ; }
Add a conditional logic statement that will determine if the last added
field will display or not. You can add `or` or `and` calls after
to build complex logic. Any other function call will return you to the
parentContext.
@param  string $name Dependent field name
(choice type: radio, checkbox, select, trueFalse)
@param  string $operator ==, !=
@param  string $value    1 or choice value
@return ConditionalBuilder
Add a conditional logic statement that will determine if the last added field will display or not . You can add or or and calls after to build complex logic . Any other function call will return you to the parentContext .