* @# not working
@ 2010-12-23 21:35 Longzhu
2010-12-24 2:54 ` Michael Brand
0 siblings, 1 reply; 2+ messages in thread
From: Longzhu @ 2010-12-23 21:35 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: @# not working
2010-12-23 21:35 @# not working Longzhu
@ 2010-12-24 2:54 ` Michael Brand
0 siblings, 0 replies; 2+ messages in thread
From: Michael Brand @ 2010-12-24 2:54 UTC (permalink / raw)
To: Longzhu; +Cc: emacs-orgmode
Hi Longzhu
On Thu, Dec 23, 2010 at 22:35, Longzhu <lshen@andrew.cmu.edu> wrote:
> #+TBLFM: $1=if(@# % 2, $#, string(""))
> [...]
> Error: Expected a number
I hope this is only because the org-version is too old to support this
feature added 2010-03-14. Check M-x org-version.
Michael
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-24 2:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23 21:35 @# not working Longzhu
2010-12-24 2:54 ` Michael Brand
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).