In my data table I want to compare values in two different columns and put results of comparison in a new column. I am able to make it work using a formula but not able to convert it into JSL. I need formula below as JSL script.
If MHD < MTV * -6 => 0
If MHD > MTV * 6 => 0
Else => 1
Here MHD and MTV are two data columns with numeric continuous values. I am comparing values in these two columns for each row.
I tried script below but it does not work.
New Column ("P/F", Numeric, "Nominal", Formula(If(:MHD < :MTV * -6, 0, :MHD > :MTV*6, 0, 1)))
Any guidance will be greatly appreciated.