emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* table and a if structure
@ 2018-06-06 13:01 Uwe Brauer
  0 siblings, 0 replies; only message in thread
From: Uwe Brauer @ 2018-06-06 13:01 UTC (permalink / raw)
  To: emacs-orgmode



Hi

I have the following table

| name   | value1 | value2 | result      |
|--------+--------+--------+-------------|
| first  | 4      |      5 | 4.2         |
| second | NP     |      5 | 0.8 NP + 1. |
#+TBLFM: $4=if("$2" == "NP",string("NP"),0.8*$2+0.2*$3)

The idea is if the second column has an entry NP then no operation
should be applied. But my table does not work. So it seems that there is
some syntax error.

Thanks

Uwe Brauer 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-06 13:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-06 13:01 table and a if structure Uwe Brauer

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).