Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Nested If Computed Statement
KSReynolds
<p>I followed the example on the 3wschools site for nested if's. I did not het an error message when I created the computed formula, but when I try to run my report, I get an error message about a dependancy error. Any ideas?</p>
<p> </p>
<p><b>if</b> (row["Main_Was_Rejected"]== "Yes") {</p>
<p>"";</p>
<p>} <b>else</b> <b>if</b> (row["NoOfLayers"] = 0) {</p>
<p>"1";</p>
<p>} <b>else</b> {</p>
<p>(row["NoOfLayers"]);</p>
<p>}</p>
Find more posts tagged with
Comments
KSReynolds
<p>Got it,</p>
<p> </p>
<p><b>if</b> (row["Main_Was_Rejected"] == "Yes"){ "";} </p>
<p><b>else</b> <b>if</b> (row["main_number_of_layers"] == 0) {"1";}</p>
<p><b>else</b> {row["main_number_of_layers"];}</p>
<p> </p>
<p>Thank you</p>