protected function get_converted_value( Papi_Core_Conditional_Rule $rule ) {
		$value = $this->get_value( $rule );

		// Convert numeric values.
		if ( is_numeric( $value ) && is_numeric( $rule->value ) ) {
			return [
				$this->convert_number( $value ),
				$this->convert_number( $rule->value )
			];
		}

		// Convert bool value if it a string bool or return value.
		$value       = $this->convert_bool( $value );
		$rule->value = $this->convert_bool( $rule->value );

		// Try to convert the property to the same value as the rule value.
		return [
			$this->convert_prop( $value, $rule ),
			$rule->value
		];
	}
protected function get_converted_value( Papi_Core_Conditional_Rule $rule ) {
		$value = $this->get_value( $rule );

		// Convert numeric values.
		if ( is_numeric( $value ) && is_numeric( $rule->value ) ) {
			return [
				$this->convert_number( $value ),
				$this->convert_number( $rule->value )
			];
		}

		// Convert bool value if it a string bool or return value.
		$value       = $this->convert_bool( $value );
		$rule->value = $this->convert_bool( $rule->value );

		// Try to convert the property to the same value as the rule value.
		return [
			$this->convert_prop( $value, $rule ),
			$rule->value
		];
	}
protected function get_converted_value ( Papi_Core_Conditional_Rule $ rule ) { $ value = $ this -> get_value ( $ rule ) ; // Convert numeric values. if ( is_numeric ( $ value ) && is_numeric ( $ rule -> value ) ) { return [ $ this -> convert_number ( $ value ) , $ this -> convert_number ( $ rule -> value ) ] ; } // Convert bool value if it a string bool or return value. $ value = $ this -> convert_bool ( $ value ) ; $ rule -> value = $ this -> convert_bool ( $ rule -> value ) ; // Try to convert the property to the same value as the rule value. return [ $ this -> convert_prop ( $ value , $ rule ) , $ rule -> value ] ; }
Get converted value.

@param  Papi_Core_Conditional_Rule $rule

@return array
Get converted value .