From mboxrd@z Thu Jan 1 00:00:00 1970 From: Longzhu Subject: @# not working Date: Thu, 23 Dec 2010 16:35:41 -0500 Message-ID: <4D13C0AD.4090809@andrew.cmu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=37164 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVsnn-0000sX-5O for emacs-orgmode@gnu.org; Thu, 23 Dec 2010 16:34:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVsnm-000099-3R for emacs-orgmode@gnu.org; Thu, 23 Dec 2010 16:34:23 -0500 Received: from smtp.andrew.cmu.edu ([128.2.11.61]:46723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVsnm-00008l-0o for emacs-orgmode@gnu.org; Thu, 23 Dec 2010 16:34:22 -0500 Received: from [128.237.236.158] (CMU-259948.WV.CC.CMU.EDU [128.237.236.158]) (user=lshen mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.14.3/8.14.3) with ESMTP id oBNLYCPi009514 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 23 Dec 2010 16:34:20 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dear Sir/Madam, I'm a new users of Emacs. I encountered a problem while I tried to create a table in the org-mode. What I want to do is conditional formula for a column. The condition is based on the @#. The problem is that @# was not recognized probably. Here is a copy of my table and the error message. Merry Christmas and Thanks for help. | num1 | num2 | num3 | |------+------+------| | #ERROR | | | | #ERROR | | | #+TBLFM: $1=if(@# % 2, $#, string("")) ---- debug message---- Substitution history of formula Orig: if(@# % 2, $#, string("")) $xyz-> if(@# % 2, $#, string("")) @r$c-> if(@# % 2, $#, string("")) $1-> if(@# % 2, $#, string("")) ---^ Error: Expected a number -- Longzhu Q. Shen Carnegie Mellon University 4400 5th Ave Pittsburgh PA 15213 Phone: (412)-268-6177 Email: lshen@andrew.cmu.edu