<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Verdana">I've managed to create a basic formula for
calculating a cost price for a product based upon a list price
multiplied by a discount. Easy enough. But now I want to create a
calculated Unit Price based either upon a discount from list OR a
mark-up from cost (which could change from day to day). I tried
entering a formula along the lines of:<br>
<br>
if cf_548 == "" then (cf_547 * cf_543) else (cf_548 * cf_544) end<br>
<br>
But this causes a 'SyntaxError: JSON.parse' dialog popup when I try to
save. Am I approaching this problem in the correct way?<br>
</font></small>
</body>
</html>