JavaScripts Berechnung xls Formel in Java

Im xls lautet die Formel:

=WENN(B27+40>41;B27+40;"")

Wie lautet diese im JavaScript?

Vielen Dank für Eure Hilfe…

Gruss martin

res=(B27+40>41)?B27+40:""

oder

res=(B27>1)?B27+40:""

Gruß, Lutz