Hi, I need help on converting the @if statement below, including the variables, into a JavaScript statement for use in the JSHeader. I am trying to define a variable for use in a javascript dblookup. Any help is greatly appreciated!!
a:=@If(BRName != “None”; BRName;“None at a”);
b:=@If(BRName=“None”&DVName!=“None”;DVName;“None at b”);
c:=@If(BRName=“None”&DVName=“None”&Office!=“None”;Office;“none at c”);
d:=@If(BRName=“None”&DVName=“None”&Office=“None”;Prgram;“none at d”);
@If(a!=“None at a”;a;b!=“None at b”;b;c!=“none at c”;c;Prgram)