This reminded me of @takbb’s thread about the Java ternary operator, that works in String Manipulation Nodes, while not being part of the documentation.
I never use it in programming because it’s ugly, but it comes in handy because it allows me to Node Golf this question. This expression produces the desired output in a single node, without the use of the cheaty scripting nodes:
string($Timepoint$).equals(“Baseline”) ? $Timepoint$ : join(“Hour”, $Timepoint$)
Does nothing if the cell contains “Baseline”, otherwise concatenate “Hour” in front of it. No picture because it’s a single String Manipulation Node that replaces the “Timepoint” Column.
change row values with condition.knwf (11.9 KB)