public function _condition($condition, $jsCodeIfTrue, $jsCodeIfFalse=null, $immediatly=false) {
		$str="if(".$condition."){".$jsCodeIfTrue."}";
		if (isset($jsCodeIfFalse)) {
			$str.="else{".$jsCodeIfFalse."}";
		}

		if ($immediatly)
			$this->jquery_code_for_compile[]=$str;
			return $str;
	}
public function _condition($condition, $jsCodeIfTrue, $jsCodeIfFalse=null, $immediatly=false) {
		$str="if(".$condition."){".$jsCodeIfTrue."}";
		if (isset($jsCodeIfFalse)) {
			$str.="else{".$jsCodeIfFalse."}";
		}

		if ($immediatly)
			$this->jquery_code_for_compile[]=$str;
			return $str;
	}
public function _condition ( $ condition , $ jsCodeIfTrue , $ jsCodeIfFalse = null , $ immediatly = false ) { $ str = "if(" . $ condition . "){" . $ jsCodeIfTrue . "}" ; if ( isset ( $ jsCodeIfFalse ) ) { $ str .= "else{" . $ jsCodeIfFalse . "}" ; } if ( $ immediatly ) $ this -> jquery_code_for_compile [ ] = $ str ; return $ str ; }
Places a condition
@param string $condition
@param string $jsCodeIfTrue
@param string $jsCodeIfFalse
@param boolean $immediatly delayed if false
@return string
Places a condition