cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
hacketkm
Level III

Help with an IF() statement?

I would like to use an IF() statement to assign a value to a column if another column meets a certain requirement.

Column 1Column 2
A1
B2
UNKNOWN
C3

D = 100;

IF( :Column 1 == "UNKNOWN", :Column 2 = D);

The script isn't recognizing D as the value "100". Could anyone help me out?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Help with an IF() statement?

You just need to address it by row.


D =100;
for each Row(
      if(:"Column 1"[]=="UNKNOWN",:"Column 2"[] = D
      )
)

The other option is to create a new column with a formula.  Then your solution would work.

View solution in original post

1 REPLY 1

Re: Help with an IF() statement?

You just need to address it by row.


D =100;
for each Row(
      if(:"Column 1"[]=="UNKNOWN",:"Column 2"[] = D
      )
)

The other option is to create a new column with a formula.  Then your solution would work.