[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] table and a if structure
From: |
Uwe Brauer |
Subject: |
[O] table and a if structure |
Date: |
Wed, 06 Jun 2018 15:01:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] table and a if structure,
Uwe Brauer <=