-
Applying nested conditions in q
I want to add a column to an existing table based on nested conditions
T:([]a:`F`R;b:10 20;c:9 21;d:10 22)
Func:{[tab]
If a=`F
If b<c
Add new column with value as ‘hi
Else
new=’welcome
Else
if c>d
new=`hi
Else
new=’welcome
}
Please help.
Log in to reply.