Home › Forums › kdb+ › Applying nested conditions in q › Re: Applying nested conditions in q
-
Another option is to use vector conditional (?)
https://code.kx.com/q/ref/vector-conditional/
q)update new_col:?[a=`F;[?[b<c;`hi;`welcome]];[?[c>d;`hi;`welcome]]] from T a b c d new_col ------------------ F 10 9 10 welcome R 20 21 22 welcome