Hello,
I have a table:
| Name | Score | Reason | Score2 |
| John | 100 | Test | |
| Dan | 95 | HW | |
| Elli | 92 | Sick | |
I want to add a JSL formula to "Score2" column which takes the value from "Score" unless there is the word "Sick" in the "Reason" column:
| Name | Score | Reason | Score 2 |
| John | 100 | Test | 100 |
| Dan | 95 | HW | 95 |
| Elli | 92 | Sick | 100 |
Below is what I have but it doesn't perform the Else as I need it to:
dt1 <<new column ("Score2",
Numeric,
"Continuous", formula (If( :Reason == "Sick",
"100",
:Score
))
);
Thank you in advance.