i am trying to do this
if(HasValue(NumericField13) && HasValue(NumericField13))then
var rent = NumericField13.rawValue;
var sqft = NumericField27.rawValue;
NumericField28.rawValue = rent / sqft;
else
NumericField28.rawValue = "0";
I keep getting a parse error and it's becuase i am trying to check both fields for values though i'm not sure how else to do this as that's what I need the if statment to check.
Justin
if (HasValue(NumericField13) & HasValue(NumericField27)) then
var rent = NumericField13.rawValue
var sqft = NumericField27.rawValue
NumericField28.rawValue = rent / sqft
else
NumericField28.rawValue = 0
endifOr this is a little shorter!
if (HasValue(NumericField13) & HasValue(NumericField27)) then
$ = NumericField13 / NumericField27
else
$ = 0
endif