Help - @If Statement to JavaScript

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)

Subject: Are you using XPages? Server Side JS?

If so, you may want to use the Notes Domino 8.5 forum instead. This is the 8.0 forum and the XPages folks don’t really hang here.

Howard